Ejemplo n.º 1
0
 private void btn_loadall_load_data_Click(object sender, EventArgs e)
 {
     InsertTb();
     _form.DeleteTb_Temp();
     _form.TampilAll();
     this.Close();
 }
Ejemplo n.º 2
0
 private void btn_insert_top_insert_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(tb_pid_insert.Text))
     {
         MessageBox.Show("PID Cannot be empty", "ADM WL/C");
     }
     else if (string.IsNullOrEmpty(tb_vin_insert.Text))
     {
         MessageBox.Show("VIN Cannot be empty", "ADM WL/C");
     }
     else if (string.IsNullOrEmpty((string)lb_wlc_code_insert.SelectedItem))
     {
         MessageBox.Show("WLC Code Cannot be empty", "ADM WL/C");
     }
     else if (string.IsNullOrEmpty(tb_model_insert.Text))
     {
         MessageBox.Show("Model Code Cannot be empty", "ADM WL/C");
     }
     else if (string.IsNullOrEmpty(tb_suffix_insert.Text))
     {
         MessageBox.Show("Suffix Cannot be empty", "ADM WL/C");
     }
     else if (string.IsNullOrEmpty(tb_chassis_number.Text))
     {
         MessageBox.Show("Chassis Number Cannot be empty", "ADM WL/C");
     }
     else
     {
         if (_form.dataGridView_wlc_data.Rows.Count < 0)
         {
             InsertNew();
             _form.TampilAll();
             this.Close();
         }
         else
         {
             InsertDG();
             _form.InsertTop();
             _form.DeleteAll();
             _form.Insert();
             this.Close();
         }
     }
 }
Ejemplo n.º 3
0
 private void btn_delete_suspend_data_list_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty((string)lb_pid_suspend_data_list.SelectedItem))
     {
         MessageBox.Show("Please Select PID!!", "ADM WL/C");
     }
     else
     {
         ListPidSuspended();
         DialogResult dialogResult = MessageBox.Show("Delete Suspended PID " + delPid + " ?", "ADM WL/C", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dialogResult == DialogResult.Yes)
         {
             DelSelect();
             _form.TampilAll();
             this.Close();
         }
     }
 }