private void SketchForm_Load(object sender, EventArgs e) { try { this.mapMain.ShowScrollbars = false; this.mapMain.Appearance = esriControlsAppearance.esriFlat; this.mapMain.AutoKeyboardScrolling = true; this.mapMain.AutoMouseWheel = true; this.mapMain.BorderStyle = esriControlsBorderStyle.esriNoBorder; this.mapMain.ShowScrollbars = false; _mapOperator = new MapOperator(); _mapOperator.Map = mapMain.Map; label1.Text = "正在加载数据,请稍等......."; timerLoad.Interval = 1; WorkBench.SetSelectedPage("PageSJGL"); }catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex); throw new Exception(ex.ToString()); } }
private void timerLoad_Tick(object sender, EventArgs e) { try { timerLoad.Enabled = false; this.Cursor = Cursors.WaitCursor; MapDataLoader mapDataLoader = new MapDataLoader(); mapDataLoader.Load(mapMain.Object as IMapControl2); _mapOperator = new MapOperator(); _mapOperator.Map = mapMain.Map; }catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex); } finally { timerLoad.Enabled = false; label1.Visible = false; this.Cursor = Cursors.Default; } }
public MapOperatorObserver(MapOperator <T, TK> parent, IObserver <TK> originalObserver) { m_Parent = parent; m_OriginalObserver = originalObserver; }
public MapOperatorObserver(MapOperator <T, K> parent, IObserver <K> destinationObserver) { m_Parent = parent; m_DestinationObserver = destinationObserver; }