Example #1
0
        private void m_archive_Click(object sender, EventArgs e)
        {
            // did the user select the FieldWorks backup file to archive?
            if (m_fieldWorksBackup.Checked)
            {
                if (m_rbNewBackup.Checked)
                {
                    using (BackupProjectDlg dlg = new BackupProjectDlg(m_cache, m_appAbbrev,
                                                                       m_helpTopicProvider))
                    {
                        if ((dlg.ShowDialog(this) == DialogResult.OK) &&
                            (!string.IsNullOrEmpty(dlg.BackupFilePath)))
                        {
                            m_filesToArchive.Add(dlg.BackupFilePath);
                        }
                        else
                        {
                            DialogResult = DialogResult.None;
                            return;
                        }
                    }
                }
                else
                {
                    m_filesToArchive.Add(m_lastBackupFile);
                }
            }

            // other files would go here, if there were an option to archive them.

            // close the dialog
            DialogResult = DialogResult.OK;
        }
Example #2
0
 private void m_backupButton_Click(object sender, EventArgs e)
 {
     using (var dlg = new BackupProjectDlg(m_cache, FwUtils.ksFlexAbbrev, m_helpTopicProvider))
         dlg.ShowDialog(this);
 }
Example #3
0
 private void btnBackup_Click(object sender, EventArgs e)
 {
     using (var dlg = new BackupProjectDlg(m_cache, FwUtils.ksFlexAbbrev, m_mediator.HelpTopicProvider))
         dlg.ShowDialog(this);
 }
Example #4
0
 private void btnBackup_Click(object sender, EventArgs e)
 {
     using (var dlg = new BackupProjectDlg(m_cache, m_propertyTable.GetValue <IHelpTopicProvider>("HelpTopicProvider")))
         dlg.ShowDialog(this);
 }