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(); }
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); }
public Form1() { InitializeComponent(); applicationsPresenter = new ApplicationsPresenter(this); }