Пример #1
0
        private void 个人资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!loginMode)
            {
                DialogResult re = MessageBox.Show("您还没有登录系统,是否登录系统?",
                                                  "提示信息", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
                if (re == DialogResult.Yes)
                {
                    systemLoginLable_LinkClicked(sender, new LinkLabelLinkClickedEventArgs(new LinkLabel.Link()));
                }
                return;
            }
            if (!OwnFileFm.IsDisposed)
            {
                return;
            }

            KillUselessFms();

            OwnFileFm           = new OwnFileForm(loginID, sysLogin);
            OwnFileFm.TopLevel  = false;
            OwnFileFm.MdiParent = this;
            //OwnFileFm.Parent = this.tableLayoutPanel2;
            OwnFileFm.Dock = DockStyle.Fill;
            OwnFileFm.Show();
        }
Пример #2
0
        private void StartAndDisposeFms()
        {
            LoginFm = new LoginForm();
            LoginFm.Dispose();

            OwnFileFm = new OwnFileForm("", false);
            OwnFileFm.Dispose();

            SuperSearchFm = new SuperSearchForm();
            SuperSearchFm.Dispose();

            FuzzySearchFm = new FuzzySearchForm();
            FuzzySearchFm.Dispose();

            MostSearchFm = new PublicSearchForm();
            MostSearchFm.Dispose();

            HistotySearchFm = new PublicSearchForm();
            HistotySearchFm.Dispose();

            BorrowingSearchFm = new PublicSearchForm();
            BorrowingSearchFm.Dispose();

            MyHistorySearchFm = new PublicSearchForm();
            MyHistorySearchFm.Dispose();
        }
Пример #3
0
        private void 个人资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!loginMode)
            {
                DialogResult re = MessageBox.Show("您还没有登录系统,是否登录系统?",
                                                  "提示信息", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
                if (re == DialogResult.Yes)
                {
                    systemLoginLable_LinkClicked(sender, new LinkLabelLinkClickedEventArgs(new LinkLabel.Link()));
                }
                return;
            }
            if (!OwnFileFm.IsDisposed)
            {
                return;
            }

            KillUselessFms();

            OwnFileFm = new OwnFileForm(loginID,sysLogin);
            OwnFileFm.TopLevel = false;
            OwnFileFm.MdiParent = this;
            //OwnFileFm.Parent = this.tableLayoutPanel2;
            OwnFileFm.Dock = DockStyle.Fill;
            OwnFileFm.Show();
        }
Пример #4
0
        private void StartAndDisposeFms()
        {
            LoginFm = new LoginForm();
            LoginFm.Dispose();

            OwnFileFm = new OwnFileForm("",false);
            OwnFileFm.Dispose();

            SuperSearchFm = new SuperSearchForm();
            SuperSearchFm.Dispose();

            FuzzySearchFm = new FuzzySearchForm();
            FuzzySearchFm.Dispose();

            MostSearchFm = new PublicSearchForm();
            MostSearchFm.Dispose();

            HistotySearchFm = new PublicSearchForm();
            HistotySearchFm.Dispose();

            BorrowingSearchFm = new PublicSearchForm();
            BorrowingSearchFm.Dispose();

            MyHistorySearchFm = new PublicSearchForm();
            MyHistorySearchFm.Dispose();
        }