public MouseInputSetup(Instruction _instruction, UserSetup _userSetup) { InitializeComponent(); instruction = _instruction; userSetup = _userSetup; SetupScreen(); }
public KeyboardInputSetup(Instruction _instruction, UserSetup _userSetup) { InitializeComponent(); instruction = _instruction; ScreenTitle.Content = instruction.activationKeyword; userSetup = _userSetup; if (instruction.input != null) { SetupUI(); } }
public void OpenControlScheme(object sender, RoutedEventArgs e) { if (userSetupWindow == null) { userSetupWindow = new UserSetup(this); App.Current.MainWindow = userSetupWindow; userSetupWindow.Show(); } else { if (userSetupWindow.IsClosed) { userSetupWindow = new UserSetup(this); App.Current.MainWindow = userSetupWindow; userSetupWindow.Show(); } else { userSetupWindow.Topmost = true; } } }