private void btnConfirm_Click(object sender, EventArgs e) { if (RegexCheck.IsNotNagtive(this.txbPartitionCount.Text)) { this.PartitionCount = int.Parse(this.txbPartitionCount.Text); this.IsCancel = false; this.Close(); } else { DevMessageUtil.ShowMessageDialog("输入的参数不正确"); } }