/// <inheritdoc /> /// <summary> /// Initializes a new instance of the class. /// </summary> public FrmGenerator(Settings settings, ServerEnvironment environment) : this() { this.settings = settings ?? throw new ArgumentNullException(nameof(settings)); this.environment = environment ?? throw new ArgumentNullException(nameof(environment)); serverComm = null; frmGenCommand = null; }
private void btnGenerateCmd_Click(object sender, EventArgs e) { // show the command form if (frmGenCommand == null) { frmGenCommand = new FrmGenCommand(serverComm, environment.ErrLog); } frmGenCommand.ShowDialog(); }
/// <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; }