public PrintHelper(ItopVectorControl tc, Itop.MapView.IMapViewObj map) { //int chose = Convert.ToInt32(ConfigurationSettings.AppSettings.Get("chose")); //if (chose == 1) //{ map = new Itop.MapView.MapViewObj(); } //else if (chose == 2) //{ map = new Itop.MapView.MapViewObj2(); } tlVectorControl1 = tc; mapview = map; pdoc = new PrintDocument(); pdoc.PrintPage += new PrintPageEventHandler(pdoc_PrintPage); pageSetting = pdoc.PrinterSettings.DefaultPageSettings; }
/// <summary> /// /// </summary> /// <param name="tlVectCtrl"></param> public XLTProcessor(ItopVectorControl tlVectCtrl) { if (tlVectCtrl == null) { throw new Exception("null ItopVectorControl!"); } xltVectorCtrl = tlVectCtrl; SetSymbolID(); BindEvents(); timer = new Timer(); timer.Interval = 1000; //timer.Start(); timer.Tick += new EventHandler(timer_Tick); }
public ImportJxt2(ItopVectorControl vc) { tlVectorControl1 = vc; }
public ImportJxt2(ItopVectorControl vc) { tlVectorControl1 = vc; }
public void AeriaView(ItopVectorControl tlVector) { if (isOpen == 1) { dialog1.Activate(); return; } try { dialog1 = new AerialView(this.drawArea1,tlVector); dialog1.loadData += new AerialView.loadDateDelegate(this.ReDraw); dialog1.Owner = this.ParentForm; dialog1.Show(); isOpen = 1; dialog1.Top = Screen.PrimaryScreen.WorkingArea.Height - 380; dialog1.Left = Screen.PrimaryScreen.WorkingArea.Width - 300; } catch (Exception exception1) { MessageBox.Show(exception1.Message); } }
public void InitData(ItopVectorControl vector) { miniatureView1.VectorControl = vector; }