public void UpdateOptionCommand(OptionCommand optionCommand, int pageIndex, int commandIndex, string rules, string comment) { optionCommand.PageIndex = pageIndex; optionCommand.CommandIndex = commandIndex; optionCommand.optionDialogInfo.Rules = rules; optionCommand.optionDialogInfo.TemplateId = comment; }
/// <summary> /// コンストラクタで処理を購読 /// </summary> public MainWindowViewModel() { StartCommand.Subscribe(async() => await StartPreview()); StopCommand.Subscribe(_ => StopPreview()); PhotoCommand = IsStop.ObserveHasErrors.CombineLatest( InputText.ObserveHasErrors, (x, y) => !x && !y).ToReactiveCommand(); OptionCommand.Subscribe(_ => IsOption.Value = !IsOption.Value); PhotoCommand.Subscribe(_ => Photo()); IsPhoto = InputText.Select(x => x.Length != 0).ToReactiveProperty(); }
private Dictionary <Buttons, ICommand> GetGamepadMappings(IGameState gameState) { ICommand optionCommand = new OptionCommand(gameState); return(new Dictionary <Buttons, ICommand> { { Buttons.A, optionCommand }, { Buttons.Start, optionCommand }, { Buttons.B, new ExitGameCommand(gameState) } }); }
public OptionDialog(OperateRecordManager operateRecordManager, int pageIndex, int commandIndex, string prevCommand, int preUniqueId) { InitializeComponent(); this.operateRecordManager = operateRecordManager; this.PageIndex = pageIndex; this.CommandIndex = commandIndex; this.prevCommand = prevCommand; this.PreUniqueId = preUniqueId; this.UniqueId = UniqueIdManager.Create(); OptionCommand = operateRecordManager.AddOptionCommand(this.PageIndex, this.CommandIndex, this.Rule.Text, this.Comment.Text, prevCommand, preUniqueId, UniqueId); }
public MainViewModel() { SetMessage(AutoRefresh ? "MO の Preview Pane を探しています" : "MO の Preview Pane を表示させた状態で、右クリックから「MO を探す」を選択してください。"); CaptureCommand = new CaptureCommand(this); CopyCardNameCommand = new CopyCardNameCommand(this); CopyEnglishNameCommand = new CopyEnglishNameCommand(this); GoToWikiCommand = new GoToWikiCommand(this); OptionCommand = new OptionCommand(this); ArrangeToolbarCommands(); automation = new AutomationHandler(this); }
public OptionCommand AddOptionCommand(int pageIndex, int commandIndex, string rules, string comment, string prevCommand, int preUniqueId, int uniqueId) { OptionCommand optionCommand = new OptionCommand() { PageIndex = pageIndex, CommandIndex = commandIndex, PrevCommand = prevCommand, PreUniqueId = preUniqueId, UniqueId = uniqueId, optionDialogInfo = new OptionDialogInfo() { Rules = rules, TemplateId = comment } }; OperateList.Add(optionCommand); return(optionCommand); }
internal override void BuildAction(string action) { base.BuildAction(action); this.optionCommand = new OptionCommand(this.CommandArguments, this.SessionService.Object, this.FilterService.Object); }
public Option(DataGridView optionDataGrid, OptionCommand optionCommand) { InitializeComponent(); this.OptionDataGrid = optionDataGrid; this.OptionCommand = optionCommand; }