예제 #1
0
        private void New()
        {
            frmEditTravel F = new frmEditTravel();

            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);
            frmEditTravel F  = new frmEditTravel();

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