Ejemplo n.º 1
0
        public void Appshare_Snapshot(Mes_MinutsofMeeting incoming_MMmsg)
        {
            Mes_MinutsofMeeting mm_msg=(Common.Mes_MinutsofMeeting)incoming_MMmsg;
                path_Appsharefile=Application.StartupPath +"\\Minuts\\"+mm_msg.ImagePath;
                file_Appshare=new FileInfo(path_Appsharefile);
                file_Appshare.Directory.Create();

                int var_temp_appshare=0;

                for(int i=0;i<ClientUI.getInstance().tabBody.TabPages.Count;i++)
                {

                    //MessageBox.Show(tabBody.TabPages[i].Title.ToString());
                    if(ClientUI.getInstance().tabBody.TabPages[i].Title.ToString().Equals("Application Sharing"))
                    {
                        ++var_temp_appshare;
                        ClientUI.getInstance().tabBody.TabPages[i].Selected=true;
                        break;
                    }

                }

                //if(var_temp_appshare<=this.var_no_appshare)
                if(var_temp_appshare>0)
                {

                    if(ClientUI.getInstance().tabBody.SelectedTab.Title.ToString().Equals("Application Sharing"))
                    {
                        ClientUI.getInstance().TakeSnapShot_MM(path_Appsharefile);
                        ClientUI.getInstance().Save_FileInfo_TobeUpload(mm_msg.meetingID,mm_msg.Host,mm_msg.Presenter,mm_msg.Module,path_Appsharefile,mm_msg.Current_DateTime,mm_msg.Mis,mm_msg.ImagePath+".jpg");

                    }
                    else
                        ClientUI.getInstance().ShowExceptionMessage("Sorry! The ordered tab is not Selected on the Host side");

                }
                else
                {
                    ClientUI.getInstance().ShowExceptionMessage("Sorry! No instance of appsharing is currently running.");
                }
        }
Ejemplo n.º 2
0
        public void WebBrowser_Snapshot(Mes_MinutsofMeeting  incoming_MMmsg)
        {
            Mes_MinutsofMeeting mm_msg=(Common.Mes_MinutsofMeeting)incoming_MMmsg;
                path_Websharefile=Application.StartupPath +"\\Minuts\\"+mm_msg.ImagePath;
                file_Webshare=new FileInfo(path_Websharefile);
                file_Webshare.Directory.Create();

                int var_temp_appshare=0;

                for(int i=0;i<ClientUI.getInstance().tabBody.TabPages.Count;i++)
                {

                    //MessageBox.Show(tabBody.TabPages[i].Title.ToString());
                    if(ClientUI.getInstance().tabBody.TabPages[i].Title.ToString().Equals("Web Sharing"))
                    {
                        ++var_temp_appshare;
                        ClientUI.getInstance().tabBody.TabPages[i].Selected=true;
                        break;
                    }

                }

                //if(var_temp_appshare<=this.var_no_appshare)
                if(var_temp_appshare>0)
                {
                    if(ClientUI.getInstance().tabBody.SelectedTab.Title.ToString().Equals("Web Sharing"))
                    {

                    /// If the image wa ssuccessfully taken then thats information can be saved other wise, Itr can't be
                    if(ClientUI.getInstance().TakeSnapShot_MM_WebBrowser(path_Websharefile))
                    ClientUI.getInstance().Save_FileInfo_TobeUpload(mm_msg.meetingID,mm_msg.Host,mm_msg.Presenter,mm_msg.Module,path_Websharefile,mm_msg.Current_DateTime,mm_msg.Mis,mm_msg.ImagePath+".jpg");
                    else
                    ClientUI.Flexalert.ShowMessage(Alerts.MeetingAlerts.AlertType.Info,"Presenter requested a Sanpshot , which can not be taken.",true,false);

                    }

                }
                else
                {
                    ClientUI.getInstance().ShowExceptionMessage("Sorry! No instance of appsharing is currently running.");
                }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// This method add the Datastructure for the minuts of meeting message to the data base on the 
        /// server side.
        /// </summary>
        /// <param name="msg_MM">  Minuts of meeting message Object</param>
        /// <returns></returns>
        public bool Add_MM_toServerDB(Mes_MinutsofMeeting msg_MM)
        {
            try
            {
                string query ="insert into ctool_minutsofmeeting (meetingid,host,presenter,datetime,module,imagepath,Text,Available,Mis) values("+msg_MM.meetingID+",'"+msg_MM.Host+"','"+msg_MM.Presenter+"','"+msg_MM.Current_DateTime+"','"+msg_MM.Module+"','"+msg_MM.ImagePath+"','"+msg_MM.Text+"',"+msg_MM.Available+",'"+msg_MM.Mis+"')";

                ConferenceServer.staticServerInstance.dbCon.Execute(query);
                return true;
            }
            catch(Exception exp)
            {
            return false;
            }
        }