/// <summary> /// Default constructor,this required because we need to use this class in XAML. /// It supports Blendability principle, Expression Blend tool can find my view model for binding, /// if i provide this constructor /// </summary> public MainWindowViewModel() { myExcelData = new ExcelData(); myBrowseFileCommand = new MainWindowCommand(BrowseFile); mySelectSingleSheetCommand = new MainWindowCommand(PopulateSheetNames, IsFileNameProvided); myConvertToCsvCommand = new MainWindowCommand(ConvertToCsv, IsReadyToBeConverted); myCancelCommand = new MainWindowCommand(Cancel); }
public void Dispose() { if (myIsNotDisposed) { myExcelData.Dispose(); mySheets.Clear(); mySheets = null; myExcelData = null; myIsNotDisposed = false; } }