Exemple #1
0
        private void New()
        {
            frmEditOtherRest F = new frmEditOtherRest();

            F.New();
            if (F.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            F.Dispose();
        }
Exemple #2
0
        private void Edit()
        {
            if (viewQuery.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow          dr = viewQuery.GetDataRow(viewQuery.FocusedRowHandle);
            frmEditOtherRest F  = new frmEditOtherRest();

            F.Edit(Convert.ToDecimal(dr["Aid"]));
            if (F.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            F.Dispose();
        }