Example #1
0
 private void button9_Click(object sender, EventArgs e)
 {
     try {
         dataViewer f = new dataViewer(_rules);
         f.Show();
     }
     catch (NullReferenceException except)
     {
         MessageBox.Show("You need to load a file first... or some other error " + except);
     }
 }
Example #2
0
 private void button7_Click(object sender, EventArgs e)
 {
     try {
         dataViewer f = new dataViewer(generateFragByRules(), 1);
         f.ShowDialog();
     }
     catch (NullReferenceException except)
     {
         MessageBox.Show("You need to load a file first Or some other exception " + except);
     }
     catch (ArgumentOutOfRangeException except)
     {
         MessageBox.Show("No molecule loaded... " + except);
     }
 }