예제 #1
0
        private void SetEnabledComponent()
        {
            ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnRefresh);

            controlEditMode.SetEnableValue(btnContinue, true);
            controlEditMode.SetEnableValue(btnDeleteFilter, true);
            controlEditMode.SetEnableValue(tbSearch, true);
            controlEditMode.SetEnableValue(menuStrip1, true);
            addToolStripMenuItem.Enabled    = controlEditMode.IsEditMode();
            deleteToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
        }
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnReload);
     controlEditMode.SetEnableValue(btnContinue, true);
     controlEditMode.SetEnableValue(btnDeleteFilter, true);
     controlEditMode.SetEnableValue(tbSearch, true);
     controlEditMode.SetEnableValue(dgv, true);
     controlEditMode.SetEnableValue(menuStrip1, true);
     addOrganizationToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
     deleteToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
     addPersonToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
     addPersonToolStripMenuItem1.Enabled = controlEditMode.IsEditMode();
 }
        private void SetEnabledComponent()
        {
            ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnReload);

            controlEditMode.SetEnableValue(btnContinue, true);
            controlEditMode.SetEnableValue(btnDeleteFilter, true);
            controlEditMode.SetEnableValue(tbSearch, true);
            controlEditMode.SetEnableValue(dgv, true);
            controlEditMode.SetEnableValue(menuStrip1, true);
            addOrganizationToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
            deleteToolStripMenuItem.Enabled          = controlEditMode.IsEditMode();
            addPersonToolStripMenuItem.Enabled       = controlEditMode.IsEditMode();
            addPersonToolStripMenuItem1.Enabled      = controlEditMode.IsEditMode();
        }
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnCancel);
     controlEditMode.SetEnable(gbCategory.Controls);
     controlEditMode.SetEnableValue(btnShowRules, true);
     controlEditMode.SetEnableValue(btnShowPerson, true);
 }
예제 #5
0
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnClose);
     controlEditMode.SetEnableValue(tbOrganization, false);
     controlEditMode.SetEnableValue(tbSubOrganization, false);
 }
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnCancel);
     controlEditMode.SetEnableValue(btnShowRules, true);
     controlEditMode.SetEnableValue(btnShowEmployees, true);
 }
예제 #7
0
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnCancel);
     controlEditMode.SetEnable(groupBox3.Controls);
     controlEditMode.SetEnableValue(treeView1, true);
 }
예제 #8
0
 private void SetEnabledComponent()
 {
     ControlEditMode controlEditMode = new ControlEditMode(this.Controls, btnRefresh);
     controlEditMode.SetEnableValue(btnContinue, true);
     controlEditMode.SetEnableValue(btnDeleteFilter, true);
     controlEditMode.SetEnableValue(tbSearch, true);
     controlEditMode.SetEnableValue(menuStrip1, true);
     addToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
     deleteToolStripMenuItem.Enabled = controlEditMode.IsEditMode();
 }