private void OnOptions_Click(object sender, EventArgs e) { using (PkOptionsForm options = new PkOptionsForm()) { options.SetOptions(this.data.Options); var result = options.ShowDialog(); if (result == DialogResult.OK) { this.data.Options.UsePageKiteNet = options.UsePagekiteNet; this.data.Options.Debug = options.Debug; this.data.Options.RememberMe = options.RememberMe; this.data.Save(); } } }
private void OnAdvanced_Click(object sender, EventArgs e) { PkOptionsForm options = new PkOptionsForm(); options.ShowDialog(); }
private void OnOptions_Click(object sender, EventArgs e) { using (PkOptionsForm options = new PkOptionsForm()) { options.SetOptions(this.data.Options); var result = options.ShowDialog(); if(result == DialogResult.OK) { this.data.Options.UsePageKiteNet = options.UsePagekiteNet; this.data.Options.Debug = options.Debug; this.data.Options.RememberMe = options.RememberMe; this.data.Save(); } } }