コード例 #1
0
 private void QuickEditKit_Load(object sender, EventArgs e)
 {
     GGKUtilLib.enableSave();
     GGKUtilLib.enableDeleteKitToolbarBtn();
     GGKUtilLib.enable_DisableKitToolbarBtn();
     GGKUtilLib.enable_EnableKitToolbarBtn();
     timer1.Enabled = true;
 }
コード例 #2
0
 private void SettingsFrm_Load(object sender, EventArgs e)
 {
     GGKUtilLib.enableSave();
     lbSettings.Items.Clear();
     settings = GGKSettings.getSettings();
     lbSettings.Items.AddRange(settings.Keys.ToArray());
     if (lbSettings.Items.Count > 0)
     {
         lbSettings.SelectedIndex = 0;
         populateForm(lbSettings.Text);
     }
 }
コード例 #3
0
 public NewEditKitFrm(string kit, bool disabled)
 {
     InitializeComponent();
     editableCtrls = new Control[] { tbFASTA, txtName, cbSex, dataGridViewAutosomal, textBoxYDNA, dgvy12, dgvy25, dgvy37, dgvy67, dgvy111, dgvymisc, textBoxMtDNA, btnPaste, btnClear };
     if (kit == null)
     {
         this.Text      = "New Kit";
         txtKit.Enabled = true;
         GGKUtilLib.enableSave();
     }
     else
     {
         kit_disabled   = disabled;
         this.Text      = "Edit Kit";
         txtKit.Text    = kit;
         txtKit.Enabled = false;
         populateFields(kit);
     }
 }
コード例 #4
0
 private void populateForm(string kit)
 {
     string[] data = settings[kit];
     tbKey.Text           = kit;
     tbValue.Text         = data[0];
     tbDesc.Text          = data[1];
     lblLastModified.Text = "Last Modified on " + data[3];
     if (data[2] == "1")
     {
         tbValue.ReadOnly        = true;
         btnResetDefault.Enabled = false;
         GGKUtilLib.disableSave();
     }
     else
     {
         tbValue.ReadOnly        = false;
         btnResetDefault.Enabled = true;
         GGKUtilLib.enableSave();
     }
 }
コード例 #5
0
        private void doControlActivities(bool disabled)
        {
            if (disabled)
            {
                GGKUtilLib.enable_EnableKitToolbarBtn();
                GGKUtilLib.disable_DisableKitToolbarBtn();
                GGKUtilLib.enableDeleteKitToolbarBtn();
                GGKUtilLib.disableSave();

                txtName.ReadOnly = true;
                dataGridViewAutosomal.ReadOnly = true;
                textBoxYDNA.ReadOnly           = true;
                dgvy12.ReadOnly       = true;
                dgvy25.ReadOnly       = true;
                dgvy37.ReadOnly       = true;
                dgvy67.ReadOnly       = true;
                dgvy111.ReadOnly      = true;
                dgvymisc.ReadOnly     = true;
                textBoxMtDNA.ReadOnly = true;
            }
            else
            {
                GGKUtilLib.disable_EnableKitToolbarBtn();
                GGKUtilLib.enable_DisableKitToolbarBtn();
                GGKUtilLib.enableDeleteKitToolbarBtn();
                GGKUtilLib.enableSave();

                txtName.ReadOnly = false;
                dataGridViewAutosomal.ReadOnly = false;
                textBoxYDNA.ReadOnly           = false;
                dgvy12.ReadOnly       = false;
                dgvy25.ReadOnly       = false;
                dgvy37.ReadOnly       = false;
                dgvy67.ReadOnly       = false;
                dgvy111.ReadOnly      = false;
                dgvymisc.ReadOnly     = false;
                textBoxMtDNA.ReadOnly = false;
            }
        }
コード例 #6
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            GGKUtilLib.enableSave();
            //
            XDocument doc = XDocument.Parse(xml_phylogeny);

            TreeNode root = new TreeNode("Eve");

            treeView1.Nodes.Add(root);

            foreach (XElement el in doc.Root.Elements())
            {
                buildTree(root, el);
            }
            root.Expand();
            //
            string mutations = GGKUtilLib.queryValue("kit_mtdna", new string[] { "mutations" }, "where kit_no='" + kit + "'");

            txtSNPs.Text = mutations;
            //
            markOnTree();
        }
コード例 #7
0
 private void OneToOneCmpFrm_Load(object sender, EventArgs e)
 {
     GGKUtilLib.enableSave();
 }