Пример #1
0
        private void ImportButton_Click(object sender, EventArgs e)
        {
            ImportExport dialog = new ImportExport();
            dialog.Options = _options;
            dialog.EnterImportMode();
            dialog.ShowDialog();

            // set the new options
            SDOptionsFile.TryLoadOptions(out _options);
            HandleNewOptions();
        }
Пример #2
0
 private void ExportButton_Click(object sender, EventArgs e)
 {
     ImportExport dialog = new ImportExport();
     dialog.Options = _options;
     dialog.EnterExportMode(ImportExport.ExporPanelTab.General);
     dialog.ShowDialog();
 }
Пример #3
0
        private void ImportMethods()
        {
            ImportExport dialog = new ImportExport();
            dialog.EnterImportMode();

            dialog.Options = _options;
            dialog.ShowDialog();
            LoadMethods();
        }
Пример #4
0
        private void HandleMenuAction(IModule module, MenuAction action)
        {
            switch(action) {
                case MenuAction.Options: {
                    OptionsForm f = new OptionsForm();
                    f.StartPanel = OptionsFormStartPanel.General;
                    f.Options = _options;

                    if(f.ShowDialog() == DialogResult.OK) {
                        SaveOptions();
                        HandleNewOptions();
                    }

                    break;
                }
                case MenuAction.About: {
                    AboutBox about = new AboutBox();
                    about.ShowDialog();
                    break;
                }
                case MenuAction.ImportExportSettings: {
                    ImportExport dialog = new ImportExport();
                    dialog.Options = _options;
                    dialog.ShowDialog();
                    LoadOptions();
                    break;
                }
            }
        }
Пример #5
0
        private void ExportMethods()
        {
            ImportExport dialog = new ImportExport();
            dialog.EnterExportMode(ImportExport.ExporPanelTab.Methods);

            dialog.Options = _options;
            dialog.ShowDialog();
        }