예제 #1
0
 public dlgShow()
 {
     base.FormClosing     += new FormClosingEventHandler(this.dlgShow_FormClosing);
     base.Load            += new EventHandler(this.dlgShow_Load);
     this.m_DrawingSymbols = new CSymbols();
     this.iCurrPage        = 0;
     this.ZoomDelta        = 0.05f;
     this.InitializeComponent();
 }
예제 #2
0
 private void ShowPage(int pPageIndex)
 {
     this.Cursor = Cursors.WaitCursor;
     try
     {
         CPage cPage = this.myPages[pPageIndex];
         if (!Information.IsNothing(cPage))
         {
             this.m_DrawingSymbols = CSymbols.String2KHs(cPage.Symbols);
         }
         this.AxMap1.Refresh();
     }
     catch (Exception expr_40)
     {
         ProjectData.SetProjectError(expr_40);
         Exception ex = expr_40;
         Interaction.MsgBox(ex.Message, MsgBoxStyle.Critical, "Show Error");
         ProjectData.ClearProjectError();
     }
     this.Cursor    = Cursors.Default;
     this.iCurrPage = pPageIndex;
     this.AxMap1.Select();
     this.AxMap1.CurrentTool = ToolConstants.miPanTool;
 }