internal static bool InitLicense() { if (ArcGISLicenseManger.InitializeArcObjects() == false) { DevMessageUtil.ShowErrorMessage("需要的ArcGIS组件未安装,程序不能运行"); return(false); } return(true); }
private void btnConfirm_Click(object sender, EventArgs e) { if (CheckInfoComplete()) { this.Close(); } else { DevMessageUtil.ShowMessageDialog("存在没有指定表空间的分区"); } }
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("输入的参数不正确"); } }
/// <summary> /// 移除配置关键字按钮点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnRemoveKeyWord_Click(object sender, EventArgs e) { if (this._dbtuneManageHelper != null) { if (this.cmbDbtuneKeyWord.SelectedIndex != -1) { if (DevMessageUtil.ShowMsgYesNo("确定要删除关键字" + this.cmbDbtuneKeyWord.SelectedItem.ToString() + "吗?") == DialogResult.Yes) { //如果移除成功,重新绑定配置关键字下拉列表 if (this._dbtuneManageHelper.DeleteConfigEX(this.cmbDbtuneKeyWord.SelectedItem.ToString())) { CommonUtil.BindcmbDbtuneKeyWord(this.cmbDbtuneKeyWord); this.cmbDbtuneKeyWord.SelectedIndex = -1; this.txbDbtuneParamValue.Text = string.Empty; } else { CommonUtil.WriteBlog(this.txbBlog, "删除失败,请检查数据库连接参数或有无权限"); } } } } }