private void SaveNullOplDBF_Electroseti_Click(object sender, System.EventArgs e) { if (this.ValidatePeriod(this.datePeriodElectroseti)) { System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog(); dialog.set_Description("Директория для файла выгрузки"); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Mappers.ExportMapper.SaveDBFNullOpl_Electroseti(this.datePeriodElectroseti.DateBegin.Date, this.datePeriodElectroseti.DateEnd.Date, dialog.get_SelectedPath()); } } }
private void bKSZN_Click(object sender, System.EventArgs e) { if (this.ValidateDate(this.dateKSZN)) { System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog(); dialog.set_Description("Директория для файла выгрузки"); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Mappers.ExportMapper.Save_KSZN(this.dateKSZN.Value.Date, dialog.get_SelectedPath()); } } }
private void MergeDBF_Electroseti_Click(object sender, System.EventArgs e) { if (this.ValidatePeriod(this.datePeriodElectroseti)) { System.Windows.Forms.OpenFileDialog dialog = new System.Windows.Forms.OpenFileDialog(); dialog.set_CheckFileExists(true); dialog.set_Multiselect(false); dialog.set_Title("Файл, с которым искать расхождения"); System.Windows.Forms.FolderBrowserDialog dialog2 = new System.Windows.Forms.FolderBrowserDialog(); dialog2.set_Description("Директория для файлов выгрузки"); if ((dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) && (dialog2.ShowDialog() == System.Windows.Forms.DialogResult.OK)) { Mappers.ExportMapper.MergeDBF_Electroseti(this.datePeriodElectroseti.DateBegin.Date, this.datePeriodElectroseti.DateEnd.Date, dialog.get_FileName(), dialog2.get_SelectedPath()); } } }
private void btnChooseExportDirectory_Click(object sender, System.EventArgs e) { System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog(); dialog.set_RootFolder(System.Environment.SpecialFolder.MyComputer); dialog.set_Description("Выбор каталога для выгрузки PDF документов"); dialog.ShowDialog(this); if (dialog.get_SelectedPath() != string.Empty) { Settings.Default.NoticesExportFolder = dialog.get_SelectedPath(); this.tbExportDirectory.set_Text(Settings.Default.NoticesExportFolder); } }