Exemplo n.º 1
0
        public FormServer(ConnectionManager connectionMgr)
        {
            InitializeComponent();

            this.connectionMgr = connectionMgr;

            // initialize presenters
            mainPresenter        = new MainPresenter();
            userPresenter        = new UsersPresenter();
            groupPresenter       = new GroupsPresenter();
            monitorPresenter     = new MonitorsPresenter();
            applicationPresenter = new ApplicationsPresenter();
            connectionPresenter  = new ConnectionPresenter(this, connectionMgr);
            remoteVncPresenter   = new RemoteVncPresenter();
            visionInputPresenter = new VisionInputPresenter();

            // create right click menu
            ContextMenu menuContext = new ContextMenu();

            this.ContextMenu = menuContext;

            MenuItem mnuItemAbout = new MenuItem();

            mnuItemAbout.Text   = "About";
            mnuItemAbout.Click += mnuItemAbout_Click;
            menuContext.MenuItems.Add(mnuItemAbout);

            // tabControl.ImageList = new ImageList();
        }
Exemplo n.º 2
0
        public FormRemoteConfigure()
        {
            InitializeComponent();
            this.Load        += FormRemoteConfigure_Load;
            this.FormClosing += FormRemoteConfigure_FormClosing;

            remoteVncPresenter   = new RemoteVncPresenter();
            applicationPresenter = new ApplicationsPresenter();
            groupPresenter       = new GroupsPresenter();
            userPresenter        = new UsersPresenter();
            visionInputPresenter = new VisionInputPresenter();
            monitorPresenter     = new MonitorsPresenter();

            // create right click menu
            ContextMenu menuContext = new ContextMenu();

            this.ContextMenu = menuContext;

            MenuItem mnuItemAbout = new MenuItem();

            mnuItemAbout.Text   = "About";
            mnuItemAbout.Click += mnuItemAbout_Click;
            menuContext.MenuItems.Add(mnuItemAbout);
        }