Exemple #1
0
 private void DoLogin()
 {
     if (InvokeRequired)
     {
         this.Invoke(new Action(DoLogin));
     }
     else
     {
         IVX.Live.MainForm.UILogics.FormBase f = c.GetContentPage(Framework.Environment.DefaultLoginPage.URL);
         f.WindowState   = FormWindowState.Normal;
         f.StartPosition = FormStartPosition.CenterParent;
         if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK)
         {
             this.Close();
         }
         else
         {
             logOutBtn.Visible = true;
             BuildMenu();
             if (ocx_VodSdk_Init())
             {
                 Framework.Environment.VODPlayControler = axvodocx1;
             }
             if (ocx_BriefSdk_Init())
             {
                 Framework.Environment.BriefPlayControler = axbriefocx1;
             }
             IVX.Live.MainForm.UILogics.FormBase f1 = c.GetContentPage(Framework.Environment.DefaultViewPage.URL);
             m_viewModel.FormTree = new Stack <SystemMenu>();
             m_currentForm        = Framework.Environment.DefaultViewPage;
             f1.MdiParent         = this;
             this.ActivateMdiChild(f1);
             labelX2.Text = "当前位置:" + Framework.Environment.DefaultViewPage.Title;
             f1.Size      = new Size(this.Width - panelEx4.Width, panelEx4.Height + 20);
             f1.Show();
             timer1.Start();
             labelUser.Text = "您好," + Framework.Environment.CurUserInfo.UserName;
         }
     }
 }
 private void buttonItem20_Click(object sender, EventArgs e)
 {
     IVX.Live.MainForm.UILogics.FormBase f = c.GetContentPage("FormSearch");
     f.MdiParent = this;
     f.Show();
 }