Пример #1
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmGenerator(Settings settings, ServerEnvironment environment)
     : this()
 {
     this.settings    = settings ?? throw new ArgumentNullException("settings");
     this.environment = environment ?? throw new ArgumentNullException("environment");
     serverComm       = null;
     frmGenData       = null;
     frmGenEvent      = null;
     frmGenCommand    = null;
 }
Пример #2
0
        private void btnGenerateEvent_Click(object sender, EventArgs e)
        {
            // show the event generator form
            if (frmGenEvent == null)
            {
                frmGenEvent = new FrmGenEvent(serverComm, environment.ErrLog);
            }

            frmGenEvent.ShowDialog();
        }