public MapFunctionActiveIdentify(AppManager app, VHFAppManager vhf) : base(app.Map) { _AppManager = app; _vhf = vhf; Configure(); }
public RasParaSetting(VHFAppManager app, IPackage pck) { _app = app; _Package = pck; _Paras = new List <IParameter>(); InitializeComponent(); }
/// <summary> /// Initializes a new instance of the <see cref = "MainForm" /> class. /// </summary> public MainForm() { // SecurityFile.Generate("e:\\vgs.dll", "cfgt-2lp5-cwp3-drkm", "VHF"); this.InitializeComponent(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); Shell = this; appManager1.InitializeContainer(); Assembly modelDll = typeof(Heiflow.Models.Integration.HeiflowModel).Assembly; appManager1.Catalog.Catalogs.Add(new AssemblyCatalog(modelDll)); Assembly cntlDll = typeof(NewProjectionForm).Assembly; appManager1.Catalog.Catalogs.Add(new AssemblyCatalog(cntlDll)); Assembly presentDll = typeof(IProjectExplorer).Assembly; appManager1.Catalog.Catalogs.Add(new AssemblyCatalog(presentDll)); Assembly appDll = typeof(VHFAppManager).Assembly; appManager1.Catalog.Catalogs.Add(new AssemblyCatalog(appDll)); Assembly toolDll = typeof(ToTIFSets).Assembly; appManager1.Catalog.Catalogs.Add(new AssemblyCatalog(toolDll)); _VHFAppManager = new VHFAppManager(); _VHFAppManager.AppName = "Visual HEIFLOW"; // _VHFAppManager.Icon = ((System.Drawing.Icon)(resources.GetObject("heiflow"))); //_VHFAppManager.AppName = "山洪模拟及水情预报系统"; //_VHFAppManager.Icon = ((System.Drawing.Icon)(resources.GetObject("heiflow"))); _VHFAppManager.ApplicationPath = Application.StartupPath; _VHFAppManager.MapAppManager = appManager1; appManager1.CompositionContainer.ComposeParts(_VHFAppManager); VHFAppManager.Instance = _VHFAppManager; VHFAppManager.Instance.CompositionContainer = appManager1.CompositionContainer; _VHFAppManager.ProjectController.ShellService.MainForm = this; _ProjectController = _VHFAppManager.ProjectController; _VHFAppManager.Initialize(); this.appManager1.LoadExtensions(); this.appManager1.DockManager.Add(new DockablePanel("kMap", "Map", map1, DockStyle.Fill)); // Add default buttons new DotSpatial.Controls.DefaultMenuBars(appManager1).Initialize(appManager1.HeaderControl); this.Load += MainForm_Load; this.FormClosing += MainForm_FormClosing; DevExpress.Data.CurrencyDataController.DisableThreadingProblemsDetection = true; _VHFAppManager.ShellService.AddNativeChildren(); _VHFAppManager.ShellService.InitChildViewService(); }