Example #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmAddUnit frm = new frmAddUnit();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();

            this.sinarekDataSet.tunit.Clear();
            this.tunitTableAdapter.Fill(this.sinarekDataSet.tunit);
        }
Example #2
0
        private void btnAddUnit_Click(object sender, EventArgs e)
        {
            frmAddUnit frm = new frmAddUnit();

            frm.ShowDialog();

            //refresh
            this.sinarekDataSet.tunit.Clear();
            tunitTableAdapter.Fill(this.sinarekDataSet.tunit);
            this.Close();
        }
Example #3
0
        private void btnAddUnit_Click(object sender, EventArgs e)
        {
            frmAddUnit frm = new frmAddUnit();

            frm.ShowDialog();

            this.sinarekDataSet.tunit.Clear();
            this.tunitTableAdapter.Fill(this.sinarekDataSet.tunit);
            rddUnit.Focus();
            rddUnit.SelectText(0, rddUnit.Text.Length);
        }