Esempio n. 1
0
 private void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.btndisable(btnnew, btnedit, btndelete, btnsave, btncancel, btnprint, btnexit);
     txtbookname.Focus();
     DesignForm.fromDesign2(this);
 }
Esempio n. 2
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     txtvoucherno.ReadOnly = false;
     txtvoucherno.Focus();
     DesignForm.fromDesign2(this);
 }
Esempio n. 3
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     ATxtScholar.Focus();
     cmbmonth.SelectedIndex = 0;
     DesignForm.fromDesign2(this);
 }
Esempio n. 4
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     DesignForm.fromDesign2(this);
     dgv1.Focus();
     dgv1.Enabled = true;
     c.GetMdiParent(this).ToggleDeleteButton(true);
 }
Esempio n. 5
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     txtclassname.Focus();
     DesignForm.fromDesign2(this);
 }
Esempio n. 6
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     dtgbook.Rows.Clear();
     dtp.Focus();
     DesignForm.fromDesign2(this);
     txtvoucherno.Enabled = false;
 }
Esempio n. 7
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     listBox1.Focus();
     c.GetMdiParent(this).ToggleDeleteButton(true);
     BtnSearch.Visible = true;
     DesignForm.fromDesign2(this);
 }
Esempio n. 8
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         c.cleartext(this);
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         DesignForm.fromDesign2(this);
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }
Esempio n. 9
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         txtaccountgroup.Focus();
         c.cleartext(this);
         DesignForm.fromDesign2(this);
     }
     catch { }
 }
Esempio n. 10
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         txtRTONo.Focus();
         c.cleartext(this);
         getId();
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         DesignForm.fromDesign2(this);
         txtBusNo.Enabled = false;
         txtRTONo.Focus();
     }
     catch { }
 }
Esempio n. 11
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     dtp.Focus();
     dtgbook.Rows.Clear();
     for (int i = 0; i <= 25; i++)
     {
         dtgbook.Rows.Add();
         DataGridViewComboBoxCell ComboColumn = (DataGridViewComboBoxCell)(dtgbook.Rows[i].Cells[0]);
         ComboColumn.DisplayMember = "acname";
         ComboColumn.ValueMember   = "accode";
         ComboColumn.DataSource    = ds.Tables[0];
     }
     DesignForm.fromDesign2(this);
     txtvoucherno.Enabled = false;
 }
Esempio n. 12
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
 }