private void QuickEditKit_Load(object sender, EventArgs e) { GGKUtilLib.enableSave(); GGKUtilLib.enableDeleteKitToolbarBtn(); GGKUtilLib.enable_DisableKitToolbarBtn(); GGKUtilLib.enable_EnableKitToolbarBtn(); timer1.Enabled = true; }
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; } }