Example #1
0
        private void sbAddType_Click(object sender, EventArgs e)
        {
            frmAbstractType myAbstractType = new frmAbstractType();

            myAbstractType.ShowDialog();
            myAbstractType.Dispose();
            RefreshType();
        }
Example #2
0
        private void sbModiType_Click(object sender, EventArgs e)
        {
            if (gvType.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow         dr             = gvType.GetDataRow(gvType.FocusedRowHandle);
            frmAbstractType myAbstractType = new frmAbstractType();

            myAbstractType.bFlag = true;
            myAbstractType.sName = dr["F_Name"].ToString();
            myAbstractType.ShowDialog();
            myAbstractType.Dispose();
            RefreshType();
        }