Beispiel #1
0
        private void SearchForm_Load(object sender, EventArgs e)
        {
            #region 返回按钮动画
            Point t = new Point(16, 11);
            frmMain.ReturnButton.Hide();
            frmMain.TitleLabel.Location = t;
            #endregion

            #region 默认搜索条件:全部检索
            AllBackground.Show();
            SearchAll.ForeColor = Color.White;//默认检索条件:全部检索
            SearchAll.BackColor = Color.FromArgb(26, 148, 129);
            ISBNBackground.Hide();
            NameBackground.Hide();
            AuthorBackground.Hide();
            PublisherBackgound.Hide();
            LabelBackground.Hide();
            ButtonState = 1;
            #endregion

            #region  钮触发范围设置
            GraphicsPath myPath = new GraphicsPath();
            myPath.AddEllipse(0, 0, 172, 172);
            UserInfoButton.Region   = new Region(myPath);
            BookReturnButton.Region = new Region(myPath);
            #endregion
        }
        private void SearchResultForm_Load(object sender, EventArgs e)
        {
            if ((bool)Tag == true)
            {
                SearchWorker.RunWorkerAsync();
            }
            else
            {
                JumpPTextBox.Text = nPage.ToString();
                PageTextBox.Text  = maxPage.ToString();
                DataSheetLoad(nPage);
            }
            #region 返回按钮处理
            frmMain.ReturnButton.Tag = 1;//1 第一层  2 第二层
            Point t = new Point(61, 11);
            frmMain.ReturnButton.Show();
            frmMain.TitleLabel.Location = t;
            #endregion

            #region 默认搜索条件:全部检索
            AllBackground.Show();
            SearchAll.ForeColor = Color.White;//默认检索条件:全部检索
            SearchAll.BackColor = Color.FromArgb(26, 148, 129);
            ISBNBackground.Hide();
            NameBackground.Hide();
            AuthorBackground.Hide();
            PublisherBackgound.Hide();
            LabelBackground.Hide();
            ButtonState = 1;
            #endregion
        }
Beispiel #3
0
 private void SearchPublisher_Click(object sender, EventArgs e)
 {
     ButtonState = 5;
     AllBackground.Hide();
     ISBNBackground.Hide();
     NameBackground.Hide();
     AuthorBackground.Hide();
     PublisherBackgound.Show();
     LabelBackground.Hide();
     SearchAll.ForeColor       = Color.FromArgb(26, 148, 129);
     SearchAll.BackColor       = Color.Transparent;
     SearchISBN.ForeColor      = Color.FromArgb(26, 148, 129);
     SearchISBN.BackColor      = Color.Transparent;
     SearchName.ForeColor      = Color.FromArgb(26, 148, 129);
     SearchName.BackColor      = Color.Transparent;
     SearchAuthor.ForeColor    = Color.FromArgb(26, 148, 129);
     SearchAuthor.BackColor    = Color.Transparent;
     SearchPublisher.ForeColor = Color.White;
     SearchPublisher.BackColor = Color.FromArgb(26, 148, 129);
     LabelButton.ForeColor     = Color.FromArgb(26, 148, 129);
     LabelButton.BackColor     = Color.Transparent;
 }
Beispiel #4
0
        private void BookManageForm_Load(object sender, EventArgs e)
        {
            DataSheetLoad(nPage);

            #region 返回按钮处理
            frmMain.ReturnButton.Tag = 1;
            Point t = new Point(61, 11);
            frmMain.ReturnButton.Show();
            frmMain.TitleLabel.Location = t;
            #endregion

            #region 默认搜索条件:全部检索
            AllBackground.Show();
            SearchAll.ForeColor = Color.White;//默认检索条件:全部检索
            SearchAll.BackColor = Color.FromArgb(26, 148, 129);
            ISBNBackground.Hide();
            NameBackground.Hide();
            AuthorBackground.Hide();
            PublisherBackgound.Hide();
            LabelBackground.Hide();
            ButtonState = 1;
            #endregion
        }