Пример #1
0
 private void QuickEditKit_FormClosing(object sender, FormClosingEventArgs e)
 {
     GGKUtilLib.disableSave();
     GGKUtilLib.disableDeleteKitToolbarBtn();
     GGKUtilLib.disable_DisableKitToolbarBtn();
     GGKUtilLib.disable_EnableKitToolbarBtn();
 }
Пример #2
0
 private void NewKitFrm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (bwDelete.IsBusy)
     {
         bwDelete.CancelAsync();
     }
     if (bwSave.IsBusy)
     {
         bwSave.CancelAsync();
     }
     if (bwNewKitAutosomalJob.IsBusy)
     {
         bwNewKitAutosomalJob.CancelAsync();
     }
     if (bwNewKitYDNAJob.IsBusy)
     {
         bwNewKitYDNAJob.CancelAsync();
     }
     if (bwPopuate.IsBusy)
     {
         bwPopuate.CancelAsync();
     }
     GGKUtilLib.disableSave();
     GGKUtilLib.disable_DisableKitToolbarBtn();
     GGKUtilLib.disable_EnableKitToolbarBtn();
     GGKUtilLib.disableDeleteKitToolbarBtn();
     GGKUtilLib.setStatus("Done.");
 }
Пример #3
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;
            }
        }