public AuthenticationStatusUI(AuthenticationJob theJob) { this.job = theJob; settings = new ToopherSettings (); debugMode = settings.DebugMode; InitializeComponent (); debugTextBox.Visible = debugMode; job.InfoStatus += updateTitle; job.DebugStatus += updateStatus; job.Done += jobDone; job.PromptUser += promptUser; inputPanel.Visible = false; if(!job.IsRunning) { job.Start (); } doLayout (); }
public AuthenticationStatusUI(AuthenticationJob theJob) { this.job = theJob; settings = new ToopherSettings(); debugMode = settings.DebugMode; InitializeComponent(); debugTextBox.Visible = debugMode; job.InfoStatus += updateTitle; job.DebugStatus += updateStatus; job.Done += jobDone; job.PromptUser += promptUser; inputPanel.Visible = false; if (!job.IsRunning) { job.Start(); } doLayout(); }