示例#1
0
        void OpenIVUDef2(object sender, EventArgs e)
        {
            if (userCanEditUDef())
            {
                if (EditIVUDefForm == null)
                {
                    try
                    {
                        EditIVUDefForm = new EditIVUDef();
                    }
                    catch (Exception ex)
                    {
                        Dynamics.Forms.SyVisualStudioHelper.Functions.DexError.Invoke(ex.Message);
                    }
                }

                // Always show and activate the WinForm
                EditIVUDefForm.Caller = 2;
                EditIVUDefForm.Show();
                EditIVUDefForm.Activate();

                // Set the flag to indicate that the form shouldn't be closed
                CloseEditIVUDefForm = false;
            }
        }
示例#2
0
 void IVUDefSetupForm_CloseAfterOriginal(object sender, EventArgs e)
 {
     // Close the WinForm
     CloseIVUDefSetupForm = true;
     if (EditIVUDefForm != null)
     {
         EditIVUDefForm.Close();
         EditIVUDefForm = null;
     }
 }