Ejemplo n.º 1
0
		public ClientUI()
		{
			InitializeComponent();
			
			MM_Controller=new WebMeeting.Client.Minuts_Meeting.Minuts_Controller();
			db=new WebMeeting.Client.ClientDataBase.DatabaseAccess("WebMeeting_Client.dll");
			fcu=new FtpClient(ConfigurationSettings.AppSettings["FtpServer"].ToString(),ConfigurationSettings.AppSettings["FtpServer_Username"].ToString(),ConfigurationSettings.AppSettings["FtpServer_Password"].ToString(),2000,21);
			pb=new WebMeeting.Client.Minuts_Meeting.Progressbar();



			
			try
			{
				//ff = new SaveFileDialog ();
				//this.Text = ;
				notesControl=new NotesControl();
				#region set backcolor of tab controls
				this.BackColor=Info.getInstance().backColor;
				tabBody.BackColor=Info.getInstance().backColor;
				panelBody.BackColor=Info.getInstance().backColor;
				tabControl1.BackColor=Info.getInstance().ParticipantBackColor;
				tabControlWebContent.BackColor = Info.getInstance().backColor;
				pollingTabControl.BackColor = Info.getInstance().backColor;
				rightPanel.BackColor=Info.getInstance().backColor;
				chatTabControl.BackColor=Info.getInstance().backColor;
				panelQuickLaunch.BackColor = System.Drawing.Color.FromArgb(209,194,197);
				#endregion
				#region set height
				tabPageChat.Height=200;
				chatTabControl.Height=308;
				tabPageNotes.ImageIndex = 1;
				tabPageNotes.Height=200;
				tabBody.Height = splitter1.Height  ;
				tabPageChat.ImageIndex = 0;
				#endregion
				#region set status bar 
				_statusBar = new DotNetStatusBar();
				_statusBar.BringToFront();
				_statusBar.Parent = this;
				this._statusBar.Name = "statusBar1";
				#endregion
				#region Set Menu.
				myNiceMenu = new NiceMenu();
				//myNiceMenu.AddMenuImage = false;
				myNiceMenu.MenuImages = mainMenuImageList;
				myNiceMenu.UpdateMenu(this.mainMenu1, new NiceMenuClickEvent(mnuGestioneEventoClick));
				

				#endregion
				#region get info and network instances
				info = Info.getInstance();
				info.ConferenceID="1";
				thisInstance = this;
				network= NetworkManager.getInstance();
				network.ChildWindowCreationEvent +=new MakeChildWindow(network_ChildWindowCreationEvent);
				#endregion
				#region add Participants tabs
				tabPage1.Title = "Participants";
				tabPage1.Control = listParticipents;			
				tabControl1.TabPages.Add(tabPage1);
			
				tabControl1.TabPages.Add(tabPageFind);				
				tabPageFind.Control=objFindParticipetsControl;
				#endregion
				#region set instances of netword and this(clientUI)
				network.pClient = this;				
				#endregion
				#region set chat controls tabs
				tabPageChat.Title = "Chat";
				tabPageNotes.Title="Notes";
				chatControl1 = chatControl.getInstance();
				
				tabPageChat.Control = chatControl1;
				chatControl1.thisWindowTabPage = tabPageChat;				
				
				tabPageNotes.Control=this.notesControl;
				chatTabControl.TabPages.Add(tabPageChat);
				chatTabControl.TabPages.Add(tabPageNotes);
				chatTabControl.ClosePressed+=new System.EventHandler(this.Close_ChatPanel);
				#endregion				
				#region white board	settind
				tabPageInfo.Title = "WhiteBoard";
				tabPageInfo.ImageList=this.imageList1;
				tabPageInfo.ImageIndex=4;
				whiteBoard = new WhiteboardControl(); //per2
				tabPageInfo.Control = whiteBoard; //per2
				tabPageInfo.Visible=false; //per2
				this.whiteBoard.DrawingTool = WebMeetingDrawingBoard.WhiteboardToolCode.None;	//per2			
				#endregion
				#region set visibility
				tabPageDesktopSharing.Visible = false;				
				listParticipents.Visible = true;
				#endregion
				#region screen capturing
				tabPageScreenCapture.Control = screencaptureControl;
				screencaptureControl.ChangeState(true);
				#endregion
				#region listParticipents settings
				listParticipents.SmallImageList = listViewImageList;
				listParticipents.GridLines = false;
				#endregion


				#region set controls to tabpages
//
				//TabPageQAAttendee.Control = qaAttendee;
				//TabPageQAPresenter.Control = qaPresenter;
				
				frmQAA.Controls.Add(qaAttendee);
				frmQAP.Controls.Add(qaPresenter);
				
				//tabPageWebContentPolls.Control = manageContentWebPolls;
				//tabPageWebContentBookmarks.Control = manageContentBookmarks;
				//tabPageWebFiles.Control = manageContentWebFiles;
				//tabPageWebEvaluation.Control = manageContentEvaluations;
				//tabPageWebPresentations.Control = manageContentPresentations;
				//tabPageWebInfo.Control = manageContentInformtaion;
				
				#endregion
				
				
				#region add tab pages in tabControlWebContent (Manage Content) and setting
				//tabControlWebContent.TabPages.Add(tabPageWebInfo);
				//tabControlWebContent.TabPages.Add(tabPageWebPresentations);
				//tabControlWebContent.TabPages.Add(tabPageWebContentPolls);
				//tabControlWebContent.TabPages.Add(tabPageWebContentBookmarks);
				//tabControlWebContent.TabPages.Add(tabPageWebFiles);
				//tabControlWebContent.TabPages.Add(tabPageWebEvaluation);
				
				tabPageWebContent.Title = "Manage Content";
				tabBody.OnSelectionChangingEx +=new WebMeeting.Client.TabControlEx.DelegateSelectionChanged(tabBody_OnSelectionChangingEx);
				splitter1.SplitterThumbBackColoor = Color.DarkBlue;
				tabPageWebContent.Control = manageContentPresentations;
				whiteBoard.pictureBox1.SizeMode = PictureBoxSizeMode.Normal; //per2
				SynchWindowProc = new FnSynchWindow(SynchWindow);
				#endregion
				#region set tooltips for drawing tools
				ToolTip drawingToolTip = new ToolTip();

				// Set up the delays for the ToolTip.
				drawingToolTip.AutoPopDelay = 1000;
				drawingToolTip.InitialDelay = 1000;
				drawingToolTip.ReshowDelay = 500;
				// Force the ToolTip text to be displayed whether or not the form is active.
				drawingToolTip.ShowAlways = true;

				drawingToolTip.SetToolTip(this.btnCircle, "Elipse");
				drawingToolTip.SetToolTip(this.btnArrow, "UnSelect");
				drawingToolTip.SetToolTip(this.btnBrush, "Brush");
				drawingToolTip.SetToolTip(this.btnClearWhiteBoard, "Clear All");
				drawingToolTip.SetToolTip(this.btnEraser, "Eraser");
				drawingToolTip.SetToolTip(this.btnFont, "Font");
				drawingToolTip.SetToolTip(this.btnLine, "Line");
				drawingToolTip.SetToolTip(this.btnNone, "Pointing Tool");
				drawingToolTip.SetToolTip(this.btnPencil, "Pencil");
				drawingToolTip.SetToolTip(this.btnPlaceHolderArrow, "Place Holder Arrow");
				drawingToolTip.SetToolTip(this.btnRectangle, "Rectangle");
				drawingToolTip.SetToolTip(this.btnText, "Text");
				drawingToolTip.SetToolTip(this.btnColor,"Color Chooser");
				drawingToolTip.SetToolTip(this.button4,"Line Thickness");
				drawingToolTip.SetToolTip(this.splitter1,"Hide/Show Right Panels");
				#endregion
				#region set listParticipents(Participents) coloumns width
				this.listParticipents.Columns[1].Width=42; //Color
				this.listParticipents.Columns[2].Width=17; //Speed
				this.listParticipents.Columns[3].Width=0; //Mood
				this.listParticipents.Columns[4].Width=45;
				this.listParticipents.Columns[5].Width=20;
				#endregion

				/*
				 * get the configuration setting relevant to exception handling
				 * 
				 * */
				ReadConfigFiles();

				ChangeResolution(true);
				







			}
			catch(Exception exp)
			{
				WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("ClientUI.cs line==> 750",exp,null,false);			
				//ShowExceptionMessage("Constructor of Application GUI has encountered an exception. " + ee.Message);
			}			
		}
Ejemplo n.º 2
0
        public static chatControl getInstance()
        {
            if(controller == null)
            {
                controller = new chatControl();
            }//end if

            return controller;
        }