Example #1
0
        private void ShowHomePage(string strCaption)
        {
            DockContent frm = FindDocument(strCaption);

            if (frm == null)
            {
                Frm_TargetUrlView frm_TargetUrlView = new Frm_TargetUrlView("", m_strDBConStringPath + "home.db", strCaption, this);
                frm_TargetUrlView.MdiParent   = this;
                frm_TargetUrlView.WindowState = FormWindowState.Maximized;
                frm_TargetUrlView.Show(this.dockPanel1);
                frm_TargetUrlView.Focus();
                frm_TargetUrlView.BringToFront();
                return;
            }
            frm.Show(this.dockPanel1);
            frm.Focus();
            frm.BringToFront();
            return;
        }
Example #2
0
        public DockContent ShowContent(string caption /*, Type formType*/)
        {
            DockContent frm = FindDocument(caption);

            if (frm == null)
            {
                Frm_TargetUrlView frm_TargetUrlView = new Frm_TargetUrlView((string)this.treeViewTask.SelectedNode.Parent.Text
                                                                            , m_strDBConStringPath + m_strTreeNodeName
                                                                            , (string)this.treeViewTask.SelectedNode.Text, this);
                frm_TargetUrlView.MdiParent   = this;
                frm_TargetUrlView.WindowState = FormWindowState.Maximized;
                frm_TargetUrlView.Show(this.dockPanel1);
                frm_TargetUrlView.Focus();
                frm_TargetUrlView.BringToFront();
                return(frm_TargetUrlView);
            }

            frm.Show(this.dockPanel1);
            frm.Focus();
            frm.BringToFront();
            return(frm);
        }