Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Application.Run(new GUI());
     using (var wForm = new welcomeForm())
     {
         wForm.StartPosition = FormStartPosition.CenterScreen;
         DialogResult result = wForm.ShowDialog();
         if (result == DialogResult.OK)
         {
             GUIFacade guiFacade = new GUIFacade(wForm.SName, wForm.SNumber);
         }
     }
 }
Exemple #2
0
        public GUI(GUIFacade guiFacade)
        {
            InitializeComponent();

            guiFacade.OnMessage       += new GUIFacade.MessageData(guiFacade_OnMessage);
            guiFacade.OnUpdateGUIData += new GUIFacade.UpdateGUIData(guiFacade_OnUpdateGUI);
            guiFacade.OnDisconnect    += new GUIFacade.DisconnectData(guiFacade_OnDisconnect);
            btnPause.Enabled           = true;
            btnResume.Enabled          = false;
            cboIP.Enabled              = false;
            btnRefresh.Enabled         = false;

            disableControls();

            txtMessages.Font = new Font(FontFamily.GenericMonospace, 8);
        }