Exemplo n.º 1
0
        private void CompositeIsotopicsBtn_Click(object sender, EventArgs e)
        {
            IDDCompositeIsotopics f   = new IDDCompositeIsotopics(ah.ap.comp_isotopics_id);
            DialogResult          dlg = f.ShowDialog();

            if (dlg != DialogResult.OK)
            {
                return;
            }
            ah.RefreshParams();
            CompositeIsotopics 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;
                ah.ap.comp_isotopics_id = selected.id;
                // NEXT: do new item id stuff right after this
            }
            else
            {
                // 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 CompositeIsotopicsBtn_Click(object sender, EventArgs e)
        {
            IDDCompositeIsotopics f = new IDDCompositeIsotopics(ah.ap.comp_isotopics_id);
            DialogResult dlg = f.ShowDialog();
            if (dlg != DialogResult.OK)
                return;
            ah.RefreshParams();
            CompositeIsotopics 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;
                ah.ap.comp_isotopics_id = selected.id;
                // NEXT: do new item id stuff right after this
            }
            else
            {
                // 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.º 3
0
        private void SetupCompositeIsotopicsClick(object sender, RoutedEventArgs e)
        {
            IDDCompositeIsotopics f = new IDDCompositeIsotopics();

            f.ShowDialog();
        }
Exemplo n.º 4
0
 private void SetupCompositeIsotopicsClick(object sender, RoutedEventArgs e)
 {
     IDDCompositeIsotopics f = new IDDCompositeIsotopics();
     f.ShowDialog();
 }