private static void Main(string[] args) { var page = new ProfilePage(); page.ShowPage(); Console.WriteLine($"Clipboard: {page.ActiveInput.Text}"); page.ButtonCopy.Execute(); Console.WriteLine($"Clipboard: {page.ActiveInput.Text}"); page.ButtonCut.Execute(); Console.WriteLine($"Clipboard: {page.ActiveInput.Text}"); page.ButtonReplace.Execute(); Console.WriteLine($"Clipboard: {page.ActiveInput.Text}"); page.Undo(); Console.WriteLine($"Clipboard: {page.ActiveInput.Text}"); Console.ReadKey(); }
protected Command(ProfilePage profilePage, TextBox input) { ProfilePage = profilePage; Input = input; }