Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 private void ExportButton_Click(object sender, EventArgs e)
 {
     ImportExport dialog = new ImportExport();
     dialog.Options = _options;
     dialog.EnterExportMode(ImportExport.ExporPanelTab.General);
     dialog.ShowDialog();
 }
Ejemplo n.º 3
0
        private void ImportMethods()
        {
            ImportExport dialog = new ImportExport();
            dialog.EnterImportMode();

            dialog.Options = _options;
            dialog.ShowDialog();
            LoadMethods();
        }
Ejemplo n.º 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;
                }
            }
        }
Ejemplo n.º 5
0
        private void ExportMethods()
        {
            ImportExport dialog = new ImportExport();
            dialog.EnterExportMode(ImportExport.ExporPanelTab.Methods);

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