Example #1
0
        static void Main(string[] args)
        {
            Program obj = new Program();

            if (!obj.IsCurrentlyRunningAsAdmin())
            {
                MessageBox.Show("Did you run it as administrator?", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            if (args != null && args.Length > 0 && args[0] != null)
            {
                MessageBox.Show(args[0]);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //controller.setCurrentForm("Dispute");
            //ServerConnectionManager c = new ServerConnectionManager();
            WCFManager c    = WCFManager.getInstance();
            ServerForm form = new ServerForm(c);

            c.View = form;
            //FormFeedback f = new FormFeedback();
            c.FeedbackWriter = form;
            Application.Run((Form)c.View);
        }
Example #2
0
        public ServerConnectionManager()
        {
            myForm=new ServerForm(this);
            myForm.Show();


            Thread serverThread = new Thread(startServer);
            serverThread.IsBackground = true;
            serverThread.Start();
            
        }