using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExcelImprot { public class MainController { private static MainController _objMySelf; private LExcelHandler _objExcelHander; private MainController() { } public static MainController GetInstance() { if (_objMySelf == null) _objMySelf = new MainController(); return _objMySelf; } public bool Initialize() { _objExcelHander = new LExcelHandler(true); if (_objExcelHander == null) return false; return true; } public LExcelHandler OpenedExcel { get { return _objExcelHander; } } } }