コード例 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     SerializeStatic.Load(typeof(Settings), Settings.FileNameSettings);
     Application.Run(new Form2());
 }
コード例 #2
0
        private void Apply_BTN_Click(object sender, EventArgs e)
        {
            Settings.ShowAccent = ShowAccent_CB.Checked;

            SerializeStatic.Save(typeof(Settings), Settings.FileNameSettings);

            foreach (Category cat in Form2.lib.Categories)
            {
                if (cat.IsChanged)
                {
                    cat.SaveSlova();
                }
            }

            Form2.lib = new Lib();

            isApplied         = true;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
コード例 #3
0
 private void Form2_FormClosing(object sender, FormClosingEventArgs e)
 {
     SerializeStatic.Save(typeof(Settings), Settings.FileNameSettings);
 }