public TemplateViewPresenter(IAppContext context, ITemplateView view, TemplatePlugin plugin) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; _plugin = plugin; view.Initialize(_context, _plugin); }
public MenuGenerator(IAppContext context, TemplatePlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } // if (pluginManager == null) throw new ArgumentNullException("pluginManager"); _plugin = plugin; _context = context; _menuManager = _context.MainView.RibbonManager; _commands = new YutaiCommands(_context, plugin.Identity); _commands.Plugin = plugin; InitMenus(); }
public void Initialize(IAppContext context, TemplatePlugin plugin) { try { _context = context; _plugin = plugin; if (_plugin != null) { _databases = new List <ITemplateDatabase>(); LoadDefaultDatabase(); } } catch (Exception ex) { MessageService.Current.Warn(ex.Message); } }
public frmQuickCreateFeatureClass(IAppContext context, TemplatePlugin plugin) { InitializeComponent(); _context = context; _map = _context.FocusMap; _plugin = plugin; ISpatialReference spatialReference = _map.SpatialReference; txtSpatialRef.Text = spatialReference.Name; IActiveView pActiveView = _map as IActiveView; IEnvelope pEnv = pActiveView.Extent; txtXMin.EditValue = Math.Floor(pEnv.XMin); txtYMin.EditValue = Math.Floor(pEnv.YMin); txtXMax.EditValue = Math.Ceiling(pEnv.XMax); txtYMax.EditValue = Math.Ceiling(pEnv.YMax); LoadTemplates(); }
public TemplateViewService(IAppContext context, TemplateViewPresenter presenter, TemplatePlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } if (presenter == null) { throw new ArgumentNullException("presenter"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } _context = context; _presenter = presenter; _plugin = plugin; var panels = context.DockPanels; }
public frmQuickCreateFeatureDataset(IAppContext context, TemplatePlugin plugin) { InitializeComponent(); _context = context; _map = _context.FocusMap; ISpatialReference spatialReference = _map.SpatialReference; txtSpatialRef.Text = spatialReference.Name; _database = plugin.TemplateDatabase; IActiveView pActiveView = _map as IActiveView; IEnvelope pEnv = pActiveView.Extent; txtXMin.EditValue = Math.Floor(pEnv.XMin); txtYMin.EditValue = Math.Floor(pEnv.YMin); txtXMax.EditValue = Math.Ceiling(pEnv.XMax); txtYMax.EditValue = Math.Ceiling(pEnv.YMax); LoadObjectDatasets(); chkNamePre.Checked = true; chkNameNext.Checked = false; }
public CmdCreateFeatureDatasetByTemplate(IAppContext context, BasePlugin plugin) { OnCreate(context); _plugin = plugin as TemplatePlugin; }