Beispiel #1
0
        private void sbAdd_Click(object sender, EventArgs e)
        {
            frmEditAddType myEditAddType = new frmEditAddType();

            myEditAddType.DataBind("");
            if (myEditAddType.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            myEditAddType.Dispose();
        }
Beispiel #2
0
        private void sbEdit_Click(object sender, EventArgs e)
        {
            if (gvMain.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow        dr            = gvMain.GetDataRow(gvMain.FocusedRowHandle);
            frmEditAddType myEditAddType = new frmEditAddType();

            myEditAddType.DataBind(dr["F_Name"].ToString());
            if (myEditAddType.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            myEditAddType.Dispose();
        }