private void AllDirectorsBtn_Click(object sender, EventArgs e) { DirectorDropDownTimer.Start(); ActiveUserControl.ActiveUserControl = directorsUserControl; dataGrid1.LoadAllDirectorsToGrid(); directorsUserControl.SetControlAsSearch(); }
private void EditDirectorsBtn_Click(object sender, EventArgs e) { DirectorDropDownTimer.Start(); ActiveUserControl.ActiveUserControl = directorsUserControl; dataGrid1.LoadAllDirectorsToGrid(); directorsUserControl.SetControlAsEdit(); SelectedRowChange_Event(sender, e); }
private void DirectorDropDownTimer_Tick(object sender, EventArgs e) { if (!DirectorTabOpening) { DirectorPanel.Height -= 11; if (DirectorPanel.Height <= 0) { DirectorPanel.Height = 0; DirectorTabOpening = true; DirectorDropDownTimer.Stop(); } } else if (DirectorTabOpening) { DirectorPanel.Height += 11; if (DirectorPanel.Height >= 99) { DirectorPanel.Height = 99; DirectorTabOpening = false; DirectorDropDownTimer.Stop(); } } }
private void DirectorDropDownBtn_Click(object sender, EventArgs e) { DirectorDropDownTimer.Start(); }