private void SetPointsInputButton_Click(object sender, EventArgs e) { KrystalBrowser krystalBrowser = new KrystalBrowser(null, _krystalsFolder, SetPointsInputKrystal); krystalBrowser.Show(); }
private void AddKrystalButton_Click(object sender, EventArgs e) { Krystal selectedKrystal = null; if(KrystalsListBox.SelectedIndex >= 0) selectedKrystal = KrystalsListBox.SelectedItem as Krystal; Moritz.Krystals.KrystalBrowser krystalBrowser = new Moritz.Krystals.KrystalBrowser(selectedKrystal, M.Preferences.LocalMoritzKrystalsFolder, SetKrystal); krystalBrowser.Show(); // the krystalBrowser calls SetKrystal() as a delegate just before it closes. }
private void AssistantComposerForm_FormClosing(object sender, FormClosingEventArgs e) { foreach(PaletteForm paletteForm in PalettesListBox.Items) { paletteForm.Delete(); } if(_dimensionsAndMetadataForm != null) { _dimensionsAndMetadataForm.Close(); } if(_krystalBrowser != null) { _krystalBrowser.Close(); _krystalBrowser = null; } }
private void ShowSelectedKrystalButton_Click(object sender, EventArgs e) { Krystal krystal = this.KrystalsListBox.SelectedItem as Krystal; if(krystal != null) { _krystalBrowser = new Moritz.Krystals.KrystalBrowser(krystal, M.Preferences.LocalMoritzKrystalsFolder, null); _krystalBrowser.Show(); } }