Esempio n. 1
0
        private void btnUploadContent_Click(object sender, System.EventArgs e)
        {
            try
            {
                if (btnUploadContent.Text == "Upload")
                {
                    string str  = Info.getInstance().WebsiteName + "/application/contentlibrary.php?page=1&mid=" + NetworkManager.getInstance().profile.ClientRegistrationId;
                    object oUrl = str;
                    object o    = new object();

                    axWebBrowser1.Visible = true;
                    axWebBrowser1.Navigate2(ref oUrl, ref o, ref o, ref o, ref o);

                    btnUploadContent.Text        = "Manage";
                    listWebPresentations.Visible = false;
                }
                else
                {
                    RetrieveContent();
                    axWebBrowser1.Visible        = false;
                    listWebPresentations.Visible = true;
                    btnUploadContent.Text        = "Upload";
                }
            }
            catch (Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("ManageContents ===>ManageContentWebPresentations.cs line==> 242", exp, null, false);
            }
        }
Esempio n. 2
0
        private void changeTitleofPage()
        {
            String code2 = "document.title='" + Info.getInstance().WebsiteName + "/application/uploads.php?meetingid=" + NetworkManager.getInstance().profile.ConferenceID + "&gid=" + NetworkManager.getInstance().profile.ClientRegistrationId + "';";

            mshtml.IHTMLDocument2 doc          = (mshtml.IHTMLDocument2) this.axWebBrowser1.Document;
            mshtml.IHTMLWindow2   parentWindow = doc.parentWindow;
            parentWindow.execScript(code2, "javascript");
        }
Esempio n. 3
0
        private void ManageContentBookmarks_Enter(object sender, System.EventArgs e)
        {
            string str  = Info.getInstance().WebsiteName + "/application/contentlibrary.php?meetingid=" + NetworkManager.getInstance().profile.ConferenceID + "&mid=" + NetworkManager.getInstance().profile.ClientRegistrationId;
            object oUrl = str;
            object o    = new object();

            axWebBrowser2.Visible = true;
            axWebBrowser2.Navigate2(ref oUrl, ref o, ref o, ref o, ref o);
        }
Esempio n. 4
0
        public void ShowContentPage()
        {
            //string str=@"C:/webshare.html";
            // commented by Zaeem as it shd pass the Host id for the meeting
            //string str = Info.getInstance().WebsiteName + "/application/contentlibrary.php?meetingid=" + NetworkManager.getInstance().profile.ConferenceID + "&mid=" + NetworkManager.getInstance().profile.ClientRegistrationId;
            // the line below is the modified line of the above , it will send the Host id
            string str  = Info.getInstance().WebsiteName + "/application/contentlibrary.php?meetingid=" + NetworkManager.getInstance().profile.ConferenceID + "&mid=" + ClientUI.getInstance().GetHostId_Registration();
            object oUrl = str;
            object o    = new object();

            axWebBrowser1.Visible = true;
            axWebBrowser1.Navigate2(ref oUrl, ref o, ref o, ref o, ref o);
        }
Esempio n. 5
0
        public Login()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            this.txtServer.Text = Info.getInstance().ServerIP;
            this.txtPort.Text   = "" + Info.getInstance().ConnectionPort;
            this.txtFTPIP.Text  = "" + Info.getInstance().FtpIP;

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Esempio n. 6
0
 public void SendEmail()
 {
     isSending      = true;
     lblStatus.Text = "Sending Invitation. Please wait";                                 // NetworkManager.getInstance().profile.Name
     if (OpenWebsite(Info.getInstance().WebsiteName + "/application/invite.php?name=" + this.txtname.Text + "&mid=" + Info.getInstance().ConferenceID + "&email=" + txtEmamil.Text + "&invite=1") > 0)
     {
         lblStatus.Text = "Invitation has been sent";
     }
     else
     {
         lblStatus.Text = "Unable to send Invitation";
     }
     btnSend.Enabled = true;
     isSending       = false;
 }
Esempio n. 7
0
        private void ManageContentWebPolls_Enter(object sender, System.EventArgs e)
        {
            try
            {
                string str  = Info.getInstance().WebsiteName + "/application/dmquestions.php?meetingid=" + NetworkManager.getInstance().profile.ConferenceID + "&mid=" + NetworkManager.getInstance().profile.ClientRegistrationId;
                object oUrl = str;
                object o    = new object();

                axWebBrowser1.Visible = true;
                axWebBrowser1.Navigate2(ref oUrl, ref o, ref o, ref o, ref o);
            }
            catch (Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("ManageContents ===>ManageContentWebPolls.cs line==> 322", exp, null, false);
            }
        }
Esempio n. 8
0
        private void btnUploadContent_Click(object sender, System.EventArgs e)
        {
            if (btnUploadContent.Text == "Upload")
            {
                string str  = Info.getInstance().WebsiteName + "/application/contentlibrary.php?page=3&mid=" + NetworkManager.getInstance().profile.ClientRegistrationId;
                object oUrl = str;
                object o    = new object();

                axWebBrowser1.Visible = true;
                axWebBrowser1.Navigate2(ref oUrl, ref o, ref o, ref o, ref o);

                btnUploadContent.Text = "Manage";
                listWebPolls.Visible  = false;
            }
            else
            {
                RetrieveContent();
                axWebBrowser1.Visible = false;
                listWebPolls.Visible  = true;
                btnUploadContent.Text = "Upload";
            }
        }
Esempio n. 9
0
        private void loginBtn_Click(object sender, System.EventArgs e)
        {
            /*if(txtBoxName.Text.Length < 1)
             * {
             *      MessageBox.Show("Please enter a name","WebMeeting",MessageBoxButtons.OK,MessageBoxIcon.Warning);
             *      return;
             * }
             *
             * if(txtBoxEmail.Text.Length < 1)
             * {
             *      MessageBox.Show("Please enter an email","WebMeeting",MessageBoxButtons.OK,MessageBoxIcon.Warning);
             *      return;
             * }
             * if(txtFTPIP.Text.Length < 1)
             * {
             *      MessageBox.Show("Please provide ftp address","WebMeeting",MessageBoxButtons.OK,MessageBoxIcon.Warning);
             *      return;
             * }
             * if(txtConferenceID.Text.Length <  1)
             * {
             *      MessageBox.Show("Please provide conference ID","WebMeeting",MessageBoxButtons.OK,MessageBoxIcon.Warning);
             *      return;
             * }*/
            if (txtPassword.Text.Length < 1)
            {
                MeetingAlerts alert = new MeetingAlerts();
                alert.ShowMessage(Alerts.MeetingAlerts.AlertType.Info, "Please provide passsword ", true, false);
                //MessageBox.Show("Please provide passsword ","WebMeeting",MessageBoxButtons.OK,MessageBoxIcon.Warning);
                return;
            }
            Info.getInstance().Password = this.txtPassword.Text;
            //Info.getInstance().FtpIP=this.txtFTPIP.Text;


            this.DialogResult = DialogResult.OK;
            Close();
        }