private void btnXCreate_Click(object sender, EventArgs e) { //Get a name for bookmark from the user FrmCreateMBMark frm = new FrmCreateMBMark(pMap); frm.WriteLog = WriteLog; //ygc 2012-9-12 新增是否写日志 frm.ShowDialog(this); InitMapBookMark(); FillList(); if (listViewEx1.Items.Count == 0)//xisheng 20110628 一项没有,全删的按钮灰掉 { btnXDeleteAll.Enabled = false; } else { btnXDeleteAll.Enabled = true; } }
public override void OnClick() { if (m_Hook == null) { return; } //LogFile log = new LogFile(m_Hook.tipRichBox, m_Hook.strLogFilePath); //if (log != null) //{ // log.Writelog("创建书签"); //} if (m_Hook.ArcGisMapControl.Map.LayerCount == 0) { MessageBox.Show("当前没有调阅数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } FrmCreateMBMark fmCreMBM = new FrmCreateMBMark(m_Hook.MapControl.Map); fmCreMBM.WriteLog = this.WriteLog; //ygc 2012-9-12 新增是否写日志 fmCreMBM.ShowDialog(m_frmhook.MainForm); }