예제 #1
0
        /// <summary>
        /// 初始化界面
        /// </summary>
        void InitFormStyle()
        {
            Current = this;
            this.WindowState = FormWindowState.Maximized;
            this.dtCreateTime.Checked = false;
            this.dtPhotoTime.Checked = false;
            this.cbDeleted.Checked = true;

            //设置隔行背景色
            this.dgvResult.RowsDefaultCellStyle.BackColor = Color.Bisque;
            this.dgvResult.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige;
            //设置不显示数据库中未绑定的列
            this.dgvResult.AutoGenerateColumns = false;
            this.pagerControl.RowsPerPage = 30;
        }
예제 #2
0
 /// <summary>
 /// 显示操作数据窗体
 /// </summary>
 private void ShowFTPMain()
 {
     if (!isRun)
     {
         DialogResult dr = MessageBox.Show(this, "系统尚未系统,检索到的结果可能不是最新数据,是否仍然检索?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
         if (dr != DialogResult.OK)
         {
             return;
         }
     }
     if (ftpForm == null || ftpForm.IsDisposed)
     {
         ftpForm = new FormFTPMain();
         //ftpForm.Owner = this;
         HideForm();
         ftpForm.Show();
     }
     else
     {
         ftpForm.WindowState = FormWindowState.Maximized;
     }
 }