Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     MerlinClientController controller = new MerlinClientController();
     MenuViewController viewController = new MenuViewController(controller);
     controller.start();
     Application.Run();
 }
Exemple #2
0
        public LoginForm(MerlinClientController controller)
        {
            InitializeComponent();

            this.controller = controller;
            this.controller.Getway_Get += GetwayGet;
            GetwayGet(this, null);
            this.controller.getGetway();
        }
        public MenuViewController(MerlinClientController controller)
        {
            this.controller = controller;
            notifyIcon = new NotifyIcon();
            LoadMenu();
            UpdateTrayIcon();
            notifyIcon.Visible = true;
            notifyIcon.ContextMenu = contextMenu;
            notifyIcon.MouseDoubleClick += notifyIcon_DoubleClick;
            notifyIcon.MouseClick += notifyIcon_Click;

            this.controller.ShowPopForm += ShowPopForm;

        }
Exemple #4
0
 public ClientForm(MerlinClientController controller)
 {
     InitializeComponent();
 }