Пример #1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (this.rbAdministrator.Checked)
     {
         this.mode = NetSqlAzManMode.Administrator;
     }
     else
     {
         this.mode = NetSqlAzManMode.Developer;
     }
     this.logErrors       = this.chkErrors.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logWarnings     = this.chkWarnings.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logInformations = this.chkInformations.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logOnEventLog   = this.chkLogOnEventLog.Checked;
     this.logOnDb         = this.chkLogOnDb.Checked;
     this.DialogResult    = DialogResult.OK;
 }
Пример #2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (this.rbAdministrator.Checked)
     {
         this.mode = NetSqlAzManMode.Administrator;
     }
     else
     {
         this.mode = NetSqlAzManMode.Developer;
     }
     this.logErrors = this.chkErrors.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logWarnings = this.chkWarnings.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logInformations = this.chkInformations.Checked && (this.chkLogOnEventLog.Checked || this.chkLogOnDb.Checked);
     this.logOnEventLog = this.chkLogOnEventLog.Checked;
     this.logOnDb = this.chkLogOnDb.Checked;
     this.DialogResult = DialogResult.OK;
 }
Пример #3
0
 void SqlAzManENS_NetSqlAzManModeChanged(NetSqlAzManMode oldMode, NetSqlAzManMode newMode)
 {
     logging.WriteInfo(this, String.Format("ENS Event: {0}\r\n\r\nOld Mode: {1}\r\nNew Mode: {2}\r\n", "NetSqlAzManModeChanged", oldMode, newMode));
 }
Пример #4
0
 private void raiseNetSqlAzManModeChanged(NetSqlAzManMode oldMode, NetSqlAzManMode newMode)
 {
     if (this.NetSqlAzManModeChanged != null)
         this.NetSqlAzManModeChanged(oldMode, newMode);
 }