示例#1
0
        private void Cancel_button_Click(object sender, EventArgs e)
        {
            Indications f1 = (Indications)Owner;

            f1.Show();
            Close();
        }
示例#2
0
 private void AddIndication_button_Click(object sender, EventArgs e)
 {
     if (Indications_textbox.TextLength != 0 && FlatId_textbox.TextLength != 0)
     {
         var con = new Connection().Connect();
         if (con == null)
         {
             return;
         }
         var Indications = Indications_textbox.Text;
         var FlatId      = FlatId_textbox.Text;
         DateSql = Date_textbox.Text;
         var Sql = "INSERT INTO `kursach`.`pokazaniya` (`flat_id`, `pokazanyia`, `pokazanyia_date`) VALUES ('" +
                   FlatId + "', '" + Indications + "', '" + DateSql + "');";
         var command = new Connection().Command(Sql, con);
         command.ExecuteNonQuery();
         Indications f1 = (Indications)Owner;
         f1.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Введите все данные");
     }
 }
示例#3
0
        private void Indications_button_Click(object sender, EventArgs e)
        {
            this.Hide();
            Indications f = new Indications(this, 1);

            f.ShowDialog();
        }
示例#4
0
 private void AddIndicationOs_button_Click(object sender, EventArgs e)
 {
     if (Indications_textbox.TextLength != 0 && Scht_combobox.SelectedItem.ToString() != "")
     {
         var con = new Connection().Connect();
         if (con == null)
         {
             return;
         }
         var Indications = Indications_textbox.Text;
         var Scht        = Scht_combobox.SelectedItem.ToString();
         DateSql = Date_textbox.Text;
         var Sql = "INSERT INTO `kursach`.`pokazanyia_os` (`scht_id`, `pokazanyia`, `date_os`) VALUES ('" +
                   Scht + "', '" + Indications + "', '" + DateSql + "');";
         var command = new Connection().Command(Sql, con);
         command.ExecuteNonQuery();
         Indications f1 = (Indications)Owner;
         f1.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Введите все данные");
     }
 }
示例#5
0
 public AddIndication(Indications f)
 {
     InitializeComponent();
     Date_textbox.Text = DateSql;
     Owner             = f;
 }