Esempio n. 1
0
 void CreateDialog_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (m_createDialog == sender)
         {
             m_createDialog = null;
         }
     }
     catch (Exception exception)
     {
         GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
     }
 }
Esempio n. 2
0
        private void SubscriptionCreateItemFromTypeMI_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_createDialog == null)
                {
                    m_createDialog              = new CreateMonitoredItemsDlg();
                    m_createDialog.FormClosing += new FormClosingEventHandler(CreateDialog_FormClosing);
                }

                m_createDialog.Show(m_subscription, true);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }