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; }
/// <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(); }
public LogicService() { mLogicThread = new LogicThread(); }