private void Editing_Load(object sender, EventArgs e) { tip.SetToolTip(IdCB, "Allows to enter only numbers, enter id of " + whichForm.ToString().ToLower() + "what are you want to edit"); tip.SetToolTip(NameTB, "Allows to enter only letters,write name here"); tip.SetToolTip(SurnameTB, "Allows to enter only letters, write surname here"); tip.SetToolTip(PatronymicTB, "Allows to enter only letters, write patronymic here"); }
/// <summary> /// Дизайн формы /// </summary> private void Design() { switch (whichForm) { case WhichForm.Defendant: { defendant = new Defendant(); Connection.Connector(dataGridView1, defendant.Display(), cantDisp); break; } case WhichForm.Judge: { judge = new Judge(); Connection.Connector(dataGridView1, judge.Display(), cantDisp); break; } case WhichForm.Plaintiff: { plaintiff = new Plaintiff(); Connection.Connector(dataGridView1, plaintiff.Display(), cantDisp); break; } default: { MessageBox.Show("NO FORM SELECTED"); Close(); break; } } HelpFac.Text = whichForm.ToString(); DisplayAll.Text = "Display all " + whichForm.ToString().ToLower(); EditSelected.Text = "Edit selected " + whichForm.ToString().ToLower(); DeleteSelected.Text = "Delete selected " + whichForm.ToString().ToLower(); }
private void Deleting_Load(object sender, EventArgs e) { tipITB.SetToolTip(IdCB, "Allows to enter only numbers, enter id of " + whichForm.ToString().ToLower() + "what are you want to delete"); }