Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            int i = gvScript.FocusedRowHandle;
            EditCheckScriptView uc = new EditCheckScriptView(EditCheckScriptView.Type.Add, null);

            CJia.HISOLAP.Tools.Help.NewRedBorderFrom(uc);
            if (OnInitView != null)
            {
                OnInitView(null, null);
            }
            gvScript.FocusedRowHandle = i;
        }
Esempio n. 2
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (gvScript.GetFocusedDataRow() != null)
     {
         int                 i  = gvScript.FocusedRowHandle;
         DataRow             dr = gvScript.GetFocusedDataRow();
         EditCheckScriptView uc = new EditCheckScriptView(EditCheckScriptView.Type.Modify, dr);
         CJia.HISOLAP.Tools.Help.NewRedBorderFrom(uc);
         if (OnInitView != null)
         {
             OnInitView(null, null);
         }
         gvScript.FocusedRowHandle = i;
     }
 }