private void KeyPointCheckPage_Load(object sender, EventArgs e) { ProcessBarPage = new ProcessBarPage(); ProcessBarPage.Hide(); #region 隱藏放大視窗按鈕 this.MaximizeBox = false; this.MinimizeBox = false; #endregion }
private void BtnStartProcess_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(txtSourcePath.Text)) { this.SourcePath = txtSourcePath.Text; ProcessBarPage = new ProcessBarPage(); ProcessBarPage.Show(); ProcessBarPage.Focus(); Thread thread = new Thread(ConvertThread); thread.Start(); } }