예제 #1
0
        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();
        }
예제 #2
0
 protected Command(ProfilePage profilePage, TextBox input)
 {
     ProfilePage = profilePage;
     Input       = input;
 }