Exemplo n.º 1
0
        private void ctlRaagaBrowser_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e)
        {
            try
            {
                m_wndChild = new frmNewWindowJukeBox(this);
                e.ppDisp = m_wndChild.RaagaJukebox.Application;
                m_wndChild.RaagaJukebox.RegisterAsBrowser = true;
                m_wndChild.Hide();
                //frm.Show();

            }
            catch(Exception _e)
            {
                frmException frm = new frmException();
                frm.ExceptionDialogTitle = "Raaga.com navigational problem ";
                frm.ErrorMessage = _e.Message;
                frm.StrackTrace = _e.StackTrace;
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    frm.Dispose();
                    frm = null;
                }
            }
        }
Exemplo n.º 2
0
        private void frmMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (m_wndChild != null)
            {
                m_wndChild.Close();
                m_wndChild.Dispose();
                m_wndChild = null;
            }

            e.Cancel = false;
        }
Exemplo n.º 3
0
        private void cmdMyRaagaLogin_Click(object sender, C1.Win.C1Command.ClickEventArgs e)
        {
            try
            {
                //NavigateToUrl(URLs.RAAGA_LOGIN_REFERER);
                frmNewWindowJukeBox frm = new frmNewWindowJukeBox();
                frm.Visible = false;
                //m_SessionID = frm.GetRaagaSessionIDCookie();
                m_Cookies = frm.GetRaagaSessionIDCookie();
                frm.Dispose();
                frm = null;

                NavigateToUrl(Application.StartupPath + @"\HTMLPages\myraaga_Login.html");
            }
            catch(Exception _e)
            {
                frmException frm = new frmException();
                frm.ExceptionDialogTitle = "Raaga.com navigational problem ";
                frm.ErrorMessage = _e.Message;
                frm.StrackTrace = _e.StackTrace;
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    frm.Dispose();
                    frm = null;
                }
            }
        }