コード例 #1
0
 protected override void OnLoad(RoutedEventArgs e)
 {
     base.OnLoad(e);
     Console.WriteLine("Form has loaded and ready to interact.");
     Console.WriteLine("Running Program.cs");
     Console.WriteLine();
     Program.Main(new string[0]);
 }
コード例 #2
0
        protected override void OnHandleCreated(EventArgs e)
        {
            ((HandleCreatedEventArgs)e).Console = ConsoleWPF;
            base.OnHandleCreated(e);

            Console.WriteLine("Native window handle has been created.");
            Console.Focus();
        }