Example #1
0
        private void showEditForm(Istab istab)
        {
            IstabAddEditForm wind = new IstabAddEditForm(IstabAddEditForm.FORM_MODE.EDIT, this.tabtyp, istab);

            if (wind.ShowDialog() == DialogResult.OK)
            {
                this.main_form.data_resource.Refresh();
                this.fillInDataGrid(this.WhichDataToUse());
                this.setSelectedItem(wind.istab);
                this.dgvIstab.Focus();
            }
            else
            {
                this.dgvIstab.Focus();
            }
        }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            IstabAddEditForm wind = new IstabAddEditForm(IstabAddEditForm.FORM_MODE.ADD, this.tabtyp);

            if (wind.ShowDialog() == DialogResult.OK)
            {
                this.main_form.data_resource.Refresh();
                this.fillInDataGrid(this.WhichDataToUse());
                this.setSelectedItem(wind.istab);
                this.dgvIstab.Focus();
            }
            else
            {
                this.dgvIstab.Focus();
            }
        }
Example #3
0
        private void showEditForm(Istab istab)
        {
            IstabAddEditForm wind = new IstabAddEditForm(IstabAddEditForm.FORM_MODE.EDIT, this.tabtyp, istab);

            if (wind.ShowDialog() == DialogResult.OK)
            {
                this.main_form.data_resource.Refresh();
                this.fillInDataGrid(this.WhichDataToUse());
                this.setSelectedItem(wind.istab);
                this.dgvIstab.Focus();
            }
            else
            {
                this.dgvIstab.Focus();
            }
        }
Example #4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     IstabAddEditForm wind = new IstabAddEditForm(IstabAddEditForm.FORM_MODE.ADD, this.tabtyp);
     if (wind.ShowDialog() == DialogResult.OK)
     {
         this.main_form.data_resource.Refresh();
         this.fillInDataGrid(this.WhichDataToUse());
         this.setSelectedItem(wind.istab);
         this.dgvIstab.Focus();
     }
     else
     {
         this.dgvIstab.Focus();
     }
 }