Exemplo n.º 1
0
        void UpdateIsotopics(bool straight)      // straight means from iso button
        {
            IDDIsotopics f   = new IDDIsotopics(ah.ap.isotopics_id);
            DialogResult dlg = f.ShowDialog();

            if (dlg != DialogResult.OK)
            {
                return;
            }
            ah.RefreshParams();
            Isotopics selected = f.GetSelectedIsotopics;

            if (ah.ap.isotopics_id != selected.id) /* They changed the isotopics id.  Isotopics already saved to DB in IDDIsotopics*/
            {
                ah.ap.isotopics_id = selected.id;
                // NEXT: do new item id stuff right after this
            }
            else if (straight)     // same iso name from iso selector but params might have changed, new item id application update occurs elsewhere
            {
                // isotopic settings will be loaded from DB prior to running measurement

                // change the isotopics setting on the current item id state
                ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id);
                if (Cur == null)                         // blank or unspecified somehow
                {
                    return;
                }
                Cur.IsoApply(NC.App.DB.Isotopics.Get(ah.ap.isotopics_id)); // apply the iso dates to the item
                NC.App.DB.ItemIds.Set(Cur);
                NC.App.DB.ItemIds.Refresh();                               // save and update the list of items
            }
        }
Exemplo n.º 2
0
        private void IsotopicsBtn_Click(object sender, EventArgs e)
        {
            IDDIsotopics f   = new IDDIsotopics(ah.ap.isotopics_id);
            DialogResult dlg = f.ShowDialog();
            //check to see if they changed the isotopic id hn 5.12.2015
            Isotopics selected = f.GetSelectedIsotopics;

            if (ah.ap.isotopics_id != selected.id) /* They changed the isotopics id.  Isotopics already saved to DB in IDDIsotopics*/
            {
                selected.modified = true;
                NC.App.DB.Isotopics.Set(selected);
                ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id);
                Cur.isotopics = selected.id;
                Cur.modified  = true;
                //force item for new id.... hn 5.13.2015
                NC.App.DB.ItemIds.Set(Cur);
                ah.ap.ApplyItemId(Cur);
                ah.ap.isotopics_id = selected.id;
            }
            else
            {
                //refresh isotopic settings?? Will these now load from DB prior to running measurement?  Let's see hn 5.13.2015
            }
        }
Exemplo n.º 3
0
        private void SetupIsotopicsClick(object sender, RoutedEventArgs e)
        {
            IDDIsotopics f = new IDDIsotopics();

            f.ShowDialog();
        }
Exemplo n.º 4
0
        // straight means from iso button
        void UpdateIsotopics(bool straight)
        {
            IDDIsotopics f = new IDDIsotopics(ah.ap.isotopics_id);
            DialogResult dlg = f.ShowDialog();
            if (dlg != DialogResult.OK)
                return;
            ah.RefreshParams();
            Isotopics selected = f.GetSelectedIsotopics;
            if (ah.ap.isotopics_id != selected.id) /* They changed the isotopics id.  Isotopics already saved to DB in IDDIsotopics*/
            {
                ah.ap.isotopics_id = selected.id;
                // NEXT: do new item id stuff right after this
            }
            else if (straight)     // same iso name from iso selector but params might have changed, new item id application update occurs elsewhere
            {
                // isotopic settings will be loaded from DB prior to running measurement

                // change the isotopics setting on the current item id state
                ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id);
                if (Cur == null)                         // blank or unspecified somehow
                    return;
                Cur.IsoApply(NC.App.DB.Isotopics.Get(ah.ap.isotopics_id));           // apply the iso dates to the item
                NC.App.DB.ItemIds.Set(Cur);
                NC.App.DB.ItemIds.Refresh();    // save and update the list of items
            }
        }
Exemplo n.º 5
0
 private void IsotopicsBtn_Click(object sender, EventArgs e)
 {
     IDDIsotopics f = new IDDIsotopics(ah.ap.isotopics_id);
     DialogResult dlg = f.ShowDialog();
     //check to see if they changed the isotopic id hn 5.12.2015
     Isotopics selected = f.GetSelectedIsotopics;
     if (ah.ap.isotopics_id != selected.id) /* They changed the isotopics id.  Isotopics already saved to DB in IDDIsotopics*/
     {
         selected.modified = true;
         NC.App.DB.Isotopics.Set(selected);
         ItemId Cur = NC.App.DB.ItemIds.Get(ah.ap.item_id);
         Cur.isotopics = selected.id;
         Cur.modified = true;
         //force item for new id.... hn 5.13.2015
         NC.App.DB.ItemIds.Set(Cur);
         ah.ap.ApplyItemId(Cur);
         ah.ap.isotopics_id = selected.id;
     }
     else
     {
         //refresh isotopic settings?? Will these now load from DB prior to running measurement?  Let's see hn 5.13.2015
     }
     
 }
Exemplo n.º 6
0
 private void IsotopicsBtn_Click(object sender, EventArgs e)
 {
     IDDIsotopics f = new IDDIsotopics(ah.ap.isotopics_id);
     f.ShowDialog();
 }
Exemplo n.º 7
0
 private void SetupIsotopicsClick(object sender, RoutedEventArgs e)
 {
     IDDIsotopics f = new IDDIsotopics();
     f.ShowDialog();
 }
Exemplo n.º 8
0
        private void IsotopicsBtn_Click(object sender, EventArgs e)
        {
            IDDIsotopics f = new IDDIsotopics(ah.ap.isotopics_id);

            f.ShowDialog();
        }