예제 #1
0
 public override void OnClick()
 {
     Plugin.Application.IAppGisUpdateRef phook = _AppHk as Plugin.Application.IAppGisUpdateRef;
     SysCommon.BottomQueryBar            pBar  = phook.QueryBar;
     if (pBar.m_WorkSpace == null)
     {
         pBar.m_WorkSpace = Plugin.ModuleCommon.TmpWorkSpace;
     }
     if (pBar.ListDataNodeKeys == null)
     {
         pBar.ListDataNodeKeys = Plugin.ModuleCommon.ListUserdataPriID;
     }
     if (_AppHk == null)
     {
         return;
     }
     /// ZQ 2011 1125 modify
     if (m_frmSelectBuffer == null)
     {
         m_frmSelectBuffer              = new frmSelectBuffer(_AppHk.ArcGisMapControl, m_pAppForm.MainForm);
         m_frmSelectBuffer.WriteLog     = this.WriteLog;
         m_frmSelectBuffer._pMapControl = _AppHk.MapControl;
         m_frmSelectBuffer.FormClosed  += new System.Windows.Forms.FormClosedEventHandler(m_frmSelectBuffer_FormClosed);
         m_frmSelectBuffer.QueryBar     = pBar;
         m_frmSelectBuffer.Show();
     }
     else
     {
         m_frmSelectBuffer.Activate();
     }
 }
예제 #2
0
 //ZQ 20111125  modify
 private void m_frmSelectBuffer_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     m_frmSelectBuffer = null;
 }