Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
 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");
 }