private void DoChooseFileName() { Logger.Info("DoChooseFileName: Retrieving previous settings"); using (WorkbookStorage.Store store = new WorkbookStorage.Store()) { string defaultPath = UserSettings.UserSettings.Default.CsvPath; Logger.Info("DoChooseFileName: Sending ChooseExportFileNameMessage"); ChooseExportFileNameMessage.Send( new FileNameMessageContent(store.Get("csv_path", defaultPath), "CSV files|*.csv;*.txt;*.dat|All files|*.*"), ConfirmChooseFileName); } }
private void DoChooseFileName() { if (CanExportSelection()) { string defaultPath = UserSettings.UserSettings.Default.ExportPath; using (WorkbookStorage.Store store = new WorkbookStorage.Store()) { string path = store.Get( Properties.StoreNames.Default.ExportPath, defaultPath); ChooseFileNameMessage.Send( new FileNameMessageContent( path, FileType.Png.ToFileFilter()), DoExportSelection); } } }