private void Active_Idea_CheckedChange(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; if ((sender as CheckBox).Text == "Active Action") { cb_ActionIdea.CheckedChanged -= Active_Idea_CheckedChange; cb_ActionIdea.Checked = false; cb_ActionIdea.CheckedChanged += Active_Idea_CheckedChange; } else if ((sender as CheckBox).Text == "Idea Action") { cb_ActionActive.CheckedChanged -= Active_Idea_CheckedChange; cb_ActionActive.Checked = false; cb_ActionActive.CheckedChanged += Active_Idea_CheckedChange; } TreeView ActionTree = (TreeView)MainProgram.Self.TabControl.Controls.Find("tree_Action", true).First(); NumericUpDown Year = (NumericUpDown)MainProgram.Self.TabControl.Controls.Find("num_Action_YearOption", true).First(); ComboBox Leader = (ComboBox)MainProgram.Self.TabControl.Controls.Find("comBox_FilterBy", true).First(); _ = new LoadActionToTree(ActionTree, Year.Value, Leader.SelectedItem.ToString()); Cursor.Current = Cursors.Default; }
private void ComBox_FilterBy_SelectedIndexChanged(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; _ = new LoadActionToTree(tree_Action, num_Action_YearOption.Value, comBox_FilterBy.SelectedItem.ToString()); if (Users.Singleton.Action == "Developer") { MainProgram.Self.actionView.Enabled = true; } Cursor.Current = Cursors.WaitCursor; }
private void Num_Action_YearOption_ValueChanged(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; _ = new LoadActionToTree(tree_Action, num_Action_YearOption.Value, comBox_FilterBy.SelectedItem.ToString()); Cursor.Current = Cursors.WaitCursor; }