public Invoker() { m_Commanders = new System.Collections.Generic.Dictionary<string, IInnerCommander>(); IInnerCommander cmder = new DefaultInnerCommand(); m_Commanders.Add(cmder.Name, cmder); cmder = new ConfirmInnerCommand(); m_Commanders.Add(cmder.Name, cmder); cmder = new AsParamInnerCommand(); m_Commanders.Add(cmder.Name, cmder); cmder = new AddParamCommand(); m_Commanders.Add(cmder.Name, cmder); cmder = new CloseCommand(); m_Commanders.Add(cmder.Name, cmder); }
public virtual void ExecuteClose(CloseCommand command) { command.Sender = SubScreen; SubScreen.Close.OnNext(command); }
private void InitCommands() { OpenCommand = new OpenCommand(this); ApplyCommand = new ApplyCommand(this); FlipCommand = new FlipCommand(this); HistogramEqualizeCommand = new HistogramEqualizeCommand(this); HistogramStretchCommand = new HistogramStretchCommand(this); CropCommand = new CropCommand(this); InpaintCommand = new InpaintCommand(this); ResizeCommand = new ResizeCommand(this); RotateCommand = new RotateCommand(this); SaveAsCommand = new SaveAsCommand(this); SaveCommand = new SaveCommand(this); ZoomCommand = new ZoomCommand(this); ResetCommand = new ResetCommand(this); CloseCommand = new CloseCommand(this); SelectToolCommand = new SelectToolCommand(this); UndoCommand = new UndoCommand(this); RedoCommand = new RedoCommand(this); DropboxCommand = new DropboxCommand(this); DownloadCommand = new DownloadCommand(this); UploadCommand = new UploadCommand(this); DCommand = new DCommand(this); ECommand = new ECommand(this); PrewittCommand = new PrewittCommand(this); }
public virtual void CloseHandler(CloseCommand command) { this.Close(command.Sender as SubScreenViewModel); }