Beispiel #1
0
        public MessageClass()
        {
            Client client = new Client();
            client.IncomingLineEvent += MessageReceived;

            //Create a new login window and set its client to this client.
            login = new Login.Form1();
            login.setClient(client);

            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);

            // Start an application context and run one form inside it
            //MyApplicationContext appContext = MyApplicationContext.getAppContext();
            Application.Run(login);

            //Create new available file window.
            af = new AvailableFiles.Form1();
            af.setClient(client);
            //Application.Run(af);

            spreadsheet = new SpreadsheetGUI.Form1();
        }