You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
excelImport/Source/ExcelImprot/MainController.cs

43 lines
847 B

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; }
}
}
}