Esempio n. 1
0
 /// <summary>
 /// Applying and writing logs to file;
 /// </summary>
 /// <param name="sender"> SubmitButton;</param>
 /// <param name="e"> EventArgs of the delegate;</param>
 private void submitButton_Click(object sender, EventArgs e)
 {
     form.theme         = (Theme)themeComboBox.SelectedIndex;
     form.frequency     = (Frequency)frequencyComboBox.SelectedIndex;
     form.CompilerPath  = compilerPathBox.Text;
     form.logsFrequency = (Frequency)logsBox.SelectedIndex;
     form.Enabled       = true;
     form.WriteLogs();
     form.ValidateSettings();
     Close();
 }
Esempio n. 2
0
 /// <summary>
 /// Connect with notepad form so it could change settings;
 /// </summary>
 /// <param name="form"> Notepad form that we want to connect with settings form; </param>
 public void ConnectForm(Form1 form)
 {
     this.form = form;
     ReviewSettings();
     form.ValidateSettings();
 }