Beispiel #1
0
        protected override void New()
        {
            base.New();
            frmEditCarryCompany myEditCarryCompany = new frmEditCarryCompany();

            myEditCarryCompany.strType = tvType.SelectedNode.Tag.ToString();
            myEditCarryCompany.New();
            if (myEditCarryCompany.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditCarryCompany.Dispose();
        }
Beispiel #2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();
            DataRow             dr = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditCarryCompany myEditCarryCompany = new frmEditCarryCompany();

            myEditCarryCompany.Edit(dr["F_ID"].ToString());
            if (myEditCarryCompany.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditCarryCompany.Dispose();
        }