public static void Show(Point location) { var pointForm = new PointForm { Location = location }; pointForm.ShowDialog(); }
protected override void InternalExecute(ICommandAdapter adapter) { PointForm.Show(this.ParameterValue <Point>()); var mouseCommand = new MouseCommand(); mouseCommand.Parameters.MainParameter = new MainParameter(ClickMethodName()); mouseCommand.Parameters.Add(new Parameter("MoveMouseTo", Parameters.MainParameter.Value, true, EndPosition)); mouseCommand.Execute(adapter); }