Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var options = YoponSetting.I;

            options.HasBlockIllegalAction = checkBox1.Checked;
            options.HasSaveChatLog        = checkBox2.Checked;
            options.HasSaveSlashMessage   = checkBox3.Checked;
            options.HasProcessFormat      = checkBox4.Checked;
            options.HideSandboxError      = checkBox5.Checked;
            options.LogFormat             = textBox1.Text;

            YoponSetting.Save();

            if (sender != null)
            {
                Close();
            }
        }
Пример #2
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     YoponSetting.Save();
 }