Example #1
0
        public FMain()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            FMainStartupInvoker +=
                new MethodInvoker(FMainStartup);
            FMainSetServerAddressInvoker +=
                new FMainSetServerAddressDelegate(FMainSetServerAddress);
            StartupTimersInvoker +=
                new MethodInvoker(StartUpTimers);
            SetCursorInvoker += new SetCursorDelegate(setCursor);
            this.FormClosing += new FormClosingEventHandler(FMain_FormClosing);

            System.Threading.Thread.CurrentThread.Name = "Server Main Thread";
            Thread dummyThread =
                new Thread(
                    new ThreadStart(this.FMainStartupDummy));

            dummyThread.Name = "dummyThread";
            dummyThread.Start();
        }
Example #2
0
		public FMain()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			FMainStartupInvoker += 
				new MethodInvoker(FMainStartup);
			FMainSetServerAddressInvoker += 
				new FMainSetServerAddressDelegate(FMainSetServerAddress);
			StartupTimersInvoker += 
				new MethodInvoker(StartUpTimers);
			SetCursorInvoker += new SetCursorDelegate(setCursor);
			this.FormClosing += new FormClosingEventHandler(FMain_FormClosing);

			System.Threading.Thread.CurrentThread.Name = "Server Main Thread";
			Thread dummyThread = 
				new Thread(
				new ThreadStart(this.FMainStartupDummy));
			dummyThread.Name = "dummyThread";
			dummyThread.Start();
		}