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