Exemplo n.º 1
0
        /// <summary>
        /// Shows the M2X4 Configuration Dialog.
        /// </summary>
        public DialogResult ConfigurationShowDialog()
        {
            L122M2X4Form l122M2X4Form = new L122M2X4Form(this);

            l122M2X4Form.Text = DeviceName;
            return(l122M2X4Form.ShowDialog());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Shows the M2X4 Configuration.
 /// </summary>
 public void ConfigurationShow(FormClosingEventHandler action = null)
 {
     FormHelper.OpenUniqueForm(DeviceName, () =>
     {
         L122M2X4Form l122M2X4Form = new L122M2X4Form(this);
         l122M2X4Form.Text         = DeviceName;
         l122M2X4Form.Name         = DeviceName;
         l122M2X4Form.Show();
         if (action != null)
         {
             l122M2X4Form.FormClosing += action;
         }
     });
 }