public AnalyzerMainWindow(IPAddress ip, int port)
        {
            InitializeComponent();

            notifyIcon1.Visible         = true;
            notifyIcon1.BalloonTipTitle = "Program started.";
            notifyIcon1.BalloonTipText  = "Connection to " + ip.ToString() + ":" + port;
            notifyIcon1.ShowBalloonTip(10000);

            _t              = new LogicThread(ip, port);
            this.Width      = SystemInformation.PrimaryMonitorSize.Width;
            this.Shown     += AnalyzerMainWindow_Shown;
            _timer          = new Timer();
            _timer.Interval = 1000;
            _timer.Tick    += _timer_Tick;
        }
예제 #2
0
        /// <summary>
        /// Initialize all classes and set renderstates
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

#if DEBUG
            // Initialize the python console
            console = new PythonInterpreter(this, consoleFont);
            console.AddGlobal("game", this);
#endif

            windowHandle = this.Window.Handle;

            IsFixedTimeStep   = true;
            TargetElapsedTime = new TimeSpan(10000000L / 30L);

            //graphics.ApplyChanges();
            LogicThread.Start();
        }
예제 #3
0
 public LogicService()
 {
     mLogicThread = new LogicThread();
 }