Пример #1
0
        public async void apply()
        {
            progresswindow p = new progresswindow();

            p.progressvisible = false;
            p.text            = "設定ファイルを書き換えています。";
            p.Show();
            await Task.Delay(2000);

            int b = 0;

            b = 0;
            Properties.Settings.Default.fileext.Clear();
            foreach (string a in listBox1.Items)
            {
                Properties.Settings.Default.fileext.Add(a);
                b = b + 1;
            }
            p.Close();
            p.Visible = false;
        }
Пример #2
0
        public async void SaveSettings()
        {
            progresswindow p = new progresswindow();

            p.progressvisible = false;
            p.text            = "設定ファイルを書き換えています。";
            p.Show();
            await Task.Delay(2000);

            switch (comboBox1.SelectedIndex)
            {
            case 0:
                Properties.Settings.Default.Launguage = "Japanese";
                break;

            case 1:
                Properties.Settings.Default.Launguage = "English";
                break;
            }
            if (checkBox1.Checked == true)
            {
                Properties.Settings.Default.textfileflag = true;
            }
            else
            {
                Properties.Settings.Default.textfileflag = false;
            }
            if (checkBox2.Checked == true)
            {
                Properties.Settings.Default.betafuture = true;
            }
            else
            {
                Properties.Settings.Default.betafuture = false;
            }

            Properties.Settings.Default.Save();
            p.Close();
        }