Пример #1
0
        internal static void Main()
        {
            Application.EnableVisualStyles();
            app = new OutputForm();
            app.InitializeComponent();

            app.SuspendLayout();             // Suspend, change title, resume
            app.Text       = app.Text.Insert(17, Program.VERSION + " ");
            app.ClientSize = new Size(Program.WIN_WIDTH, Program.WIN_HEIGHT);
            app.ResumeLayout(false);

            Application.Run(app);
        }
Пример #2
0
 internal static bool IsFocused()
 {
     return(GetForegroundWindow() == GetConsoleWindow() || GetForegroundWindow() == OutputForm.GetHandle(OutputForm.app));
 }