示例#1
0
        private void New()
        {
            frmEditLeave F = new frmEditLeave();

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

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