Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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;
 }
Ejemplo 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);
 }
Ejemplo 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); }
 }
Ejemplo 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 { }
 }
Ejemplo 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 { }
 }
Ejemplo 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;
 }
Ejemplo n.º 12
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
 }