Beispiel #1
0
 public FormMain()
 {
     InitializeComponent();
     _logger                      = new Logger(false, "");
     _logger.LogListBox           = listBoxLog;
     _logger.LogListBoxAutoScroll = true;
     smtpMock                     = new SmtpMock(_logger);
     smtpMock.Start();
 }
Beispiel #2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     smtpMock.Stop();
     smtpMock = null;
 }
Beispiel #3
0
 private void buttonExit_Click(object sender, EventArgs e)
 {
     smtpMock.Stop();
     smtpMock = null;
     this.Dispose();
 }