示例#1
0
        private async void reloadState()
        {
            this.cbMinimizeOnStart.IsChecked = Settings.Default.minimizeOnStart;
            this.cbMinimizeToTray.IsChecked  = Settings.Default.minimizeToTray;
            this.cbPairOnStart.IsChecked     = Settings.Default.pairOnStart;
            this.cbUseCustomCursor.IsChecked = Settings.Default.pointer_customCursor;

            InputFactory.InputType inputType = InputFactory.getType(Settings.Default.input);

            switch (inputType)
            {
            case InputFactory.InputType.POINTER:
                this.cbiPointer.IsSelected = true;
                break;

            case InputFactory.InputType.PEN:
                this.cbiPen.IsSelected = true;
                break;
            }
            this.providerSettingsContent.Children.Clear();
            this.providerSettingsContent.Children.Add(MultiWiiPointerProvider.getSettingsControl());

            this.cbWindowsStart.IsChecked = Autostart.IsAutostart();
        }
示例#2
0
 private async void cbWindowsStart_Unchecked(object sender, RoutedEventArgs e)
 {
     this.cbWindowsStart.IsChecked = !(Autostart.UnsetAutostart());
 }
示例#3
0
 private async void cbWindowsStart_Checked(object sender, RoutedEventArgs e)
 {
     this.cbWindowsStart.IsChecked = Autostart.SetAutostart();
 }