Exemplo n.º 1
0
        protected override void New()
        {
            base.New();

            frmEditCurrency myEditCurrency = new frmEditCurrency();

            myEditCurrency.New();
            if (myEditCurrency.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
            myEditCurrency.Dispose();
        }
Exemplo n.º 2
0
        protected override void Edit()
        {
            if (gvBase.FocusedRowHandle < 0)
            {
                return;
            }
            base.Edit();

            DataRow         dr             = gvBase.GetDataRow(gvBase.FocusedRowHandle);
            frmEditCurrency myEditCurrency = new frmEditCurrency();

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