示例#1
0
 private void GloveboxIdComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     model = new holdup_config_rec(NC.App.DB.HoldupConfigParameters.Get((string)GloveboxIdComboBox.SelectedItem)); // expect and use strings
     NumRowsTextBox.Text  = model.num_rows.ToString();
     NumColsTextBox.Text  = model.num_columns.ToString();
     DistanceTextBox.Text = model.distance.ToString("F1");
 }
示例#2
0
 private void GloveboxIdComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     model = new holdup_config_rec(NC.App.DB.HoldupConfigParameters.Get((string)GloveboxIdComboBox.SelectedItem)); // expect and use strings
     NumRowsTextBox.Text = model.num_rows.ToString();
     NumColsTextBox.Text = model.num_columns.ToString();
     DistanceTextBox.Text = model.distance.ToString("F1");
 }
示例#3
0
        private void OKBtn_Click(object sender, EventArgs e)
        {
            if (target == null)
            {
                return;
            }
            holdup_config_rec m = null;

            try
            {
                m = NC.App.DB.HoldupConfigParameters.Get(target.glovebox_id);
            }
            catch (InvalidOperationException)  // id not there, it's new
            { }
            if (null != m)
            {
                if (NC.App.DB.HoldupConfigParameters.Delete(target)) // removes from DB then from in-memory list, just like isotopics
                {
                    target = null;
                    RefreshHCCombo();
                }
            }
        }
示例#4
0
 public IDDGloveboxEdit()
 {
     InitializeComponent();
     model = new holdup_config_rec();
     RefreshHCCombo(pick: false);
 }
示例#5
0
 public IDDGloveboxEdit()
 {
     InitializeComponent();
     model = new holdup_config_rec();
     RefreshHCCombo(pick:false);
 }
示例#6
0
 private void OKBtn_Click(object sender, EventArgs e)
 {
     if (target == null)
         return;
     holdup_config_rec m = null;
     try
     {
         m = NC.App.DB.HoldupConfigParameters.Get(target.glovebox_id);
     }
     catch (InvalidOperationException)  // id not there, it's new
     { }
     if (null != m)
     {
         if (NC.App.DB.HoldupConfigParameters.Delete(target)) // removes from DB then from in-memory list, just like isotopics
         {
             target = null;
             RefreshHCCombo();
         }
     }
 }
示例#7
0
 private void GloveboxIdComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     target = NC.App.DB.HoldupConfigParameters.Get(((ComboBox)sender).Text);
 }
示例#8
0
 private void GloveboxIdComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     target = NC.App.DB.HoldupConfigParameters.Get(((ComboBox)sender).Text);
 }