예제 #1
0
 private void SetPointsInputButton_Click(object sender, EventArgs e)
 {
     KrystalBrowser krystalBrowser = new KrystalBrowser(null, _krystalsFolder, SetPointsInputKrystal);
     krystalBrowser.Show();
 }
예제 #2
0
 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.
 }
예제 #3
0
        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;
            }
        }
예제 #4
0
 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();
     }
 }