Beispiel #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Settingcs Setting = new Settingcs();

            Setting.SetDefault();
            Loade();
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();
            Load();
            Settingcs set = new Settingcs();

            set.LoadSetting();
        }
Beispiel #3
0
        public Settings()
        {
            InitializeComponent();
            LoadHelpers();
            Settingcs Setting = new Settingcs();

            Setting.LoadSetting();
            Loade();
        }
Beispiel #4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Api.Pagesize = pagesize.Value.ToString();
                Api.Fpslimit = fpslimit.Value.ToString();

                if (audiomsgoff.IsChecked == true)
                {
                    Api.Audiomsgoff = "1";
                }
                else
                {
                    Api.Audiomsgoff = "0";
                }
                if (headmove.IsChecked == true)
                {
                    Api.Disableheadmove = "1";
                }
                else
                {
                    Api.Disableheadmove = "0";
                }
                if (timestamp.IsChecked == true)
                {
                    Api.Timestamp = "1";
                }
                else
                {
                    Api.Timestamp = "0";
                }
                if (ime.IsChecked == true)
                {
                    Api.Ime = "1";
                }
                else
                {
                    Api.Ime = "0";
                }
                if (dmode.IsChecked == true)
                {
                    Api.Directmode = "1";
                }
                else
                {
                    Api.Directmode = "0";
                }
                if (nonametagstatus.IsChecked == true)
                {
                    Api.Nonametagstatus = "1";
                }
                else
                {
                    Api.Nonametagstatus = "0";
                }
                if (fontweight.IsChecked == true)
                {
                    Api.Fontweight = "0";
                }
                else
                {
                    Api.Audiomsgoff = "1";
                }
                Api.Multicore = "1";
                Settingcs Setting = new Settingcs();
                Setting.SaveSettings();
                Setting.LoadSetting();
            }
            catch (Exception er) { MessageBox.Show(er.ToString()); }
        }