public LayoutView( IAppContext context, PrintingPlugin plugin, IBroadcasterService broadcaster, IStyleService styleService, ElementsPresenter elements, PdfExportService pdfService ) { if (context == null) { throw new ArgumentNullException("context"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } if (broadcaster == null) { throw new ArgumentNullException("broadcaster"); } if (styleService == null) { throw new ArgumentNullException("styleService"); } if (elements == null) { throw new ArgumentNullException("elements"); } if (pdfService == null) { throw new ArgumentNullException("pdfService"); } _context = context; _plugin = plugin; _broadcaster = broadcaster; _styleService = styleService; _elements = elements; _pdfService = pdfService; InitializeComponent(); // there is no way to get it other than in context of some Control ScreenHelper.ScreenDpi = layoutControl1.GetScreenDpi(); InitControls(); AttachEventHandlers(); InitDockPanels(); InitMenus(); RestorePreviousState(); statusStripEx1.ContextMenuStrip = null; FormClosing += LayoutViewFormClosing; }
public LayoutMenuGenerator(IAppContext context, PrintingPlugin plugin, ILayoutView view, LayoutMenuListener listener) { if (plugin == null) { throw new ArgumentNullException("plugin"); } if (view == null) { throw new ArgumentNullException("view"); } if (listener == null) { throw new ArgumentNullException("listener"); } _plugin = plugin; _commands = new LayoutMenuCommands(plugin.Identity); _menu = MenuFactory.CreateMenu(view.MenuManager); _toolbars = MenuFactory.CreateToolbars(view.MenuManager); InitMenu(); ViewMenuHelper.Init(view.MenuManager, view.DockingManager, _menu, view.DockPanels, _plugin.Identity); InitToolbars(); _menu.ItemClicked += listener.OnItemClicked; _toolbars.ItemClicked += listener.OnItemClicked; }
public MenuUpdater(IAppContext context, PrintingPlugin plugin) { _context = context; _plugin = plugin; _plugin.ViewUpdating += OnViewUpdating; }
public frmIndexMap(string connectionString, IIndexMap indexMap, PrintingPlugin plugin) { InitializeComponent(); _connectionString = connectionString; _indexMap = indexMap; _plugin = plugin; FillTemplate(); FillIndexMap(); }
public TemplateConfigPage(IConfigService configService, PrintingPlugin plugin) { if (configService == null) { throw new ArgumentNullException("configService"); } _configService = configService; _plugin = plugin; InitializeComponent(); Initialize(); }
public MenuListener(IAppContext context, PrintingPlugin plugin) : base(context, plugin.Identity) { if (plugin == null) { throw new ArgumentNullException("plugin"); } _plugin = plugin; plugin.ItemClicked += OnItemClicked; plugin.ViewUpdating += ViewUpdating; }
public MapListener(IAppContext context, PrintingPlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } _context = context; _plugin = plugin; plugin.SelectBoxFinal += OnSelectBoxFinal; }
public MenuGenerator(IAppContext context, PrintingPlugin 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, PrintingPlugin plugin) { try { _context = context; _plugin = plugin; _layoutControl = _context.MainView.PageLayoutControl; LoadMapTemplate(); FillScaleList(); LoadIndexMaps(); InitCommands(); } catch (Exception ex) { MessageService.Current.Warn(ex.Message); } }
public MenuGenerator(IAppContext context, PrintingPlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } _commands = new MenuCommands(plugin.Identity); _context = context; _plugin = plugin; InitMenu(); InitToolbar(); }
public AutoLayoutPresenter(IAppContext context, IAutoLayoutView view, PrintingPlugin plugin) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; _plugin = plugin; view.Initialize(_context, _plugin); ((IAppContextEvents)_context).OnActiveHookChanged += OnOnActiveHookChanged; _context.MainView.ArcGISControlChanging += MainViewOnArcGisControlChanging; //view.ModeChanged += OnIdentifierModeChanged; //view.ItemSelected += OnItemSelected; //_plugin.MapIdentifying += PluginOnMapIdentifying; //_plugin.UnMapIdentify += PluginOnUnMapIdentify; //_plugin.StartMapIdentify += PluginOnStartMapIdentify; }
public AutoLayoutViewService(IAppContext context, AutoLayoutPresenter presenter, PrintingPlugin 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 CmdPageSetup(IAppContext context, BasePlugin plugin) { OnCreate(context); _plugin = plugin as PrintingPlugin; }
public ToolFenceLineBuffer(IAppContext context, PrintingPlugin plugin) { OnCreate(context); _plugin = plugin; }
public ToolFencePolygon(IAppContext context, PrintingPlugin plugin) { OnCreate(context); _plugin = plugin; }
public CmdStartLayout(IAppContext context, BasePlugin plugin) { OnCreate(context); _plugin = plugin as PrintingPlugin; }
public ToolFenceCircle(IAppContext context, PrintingPlugin plugin) { OnCreate(context); _plugin = plugin; }
public CmdlFenceExtent(IAppContext context, PrintingPlugin plugin) { OnCreate(context); _plugin = plugin; }
public CmdApplyTfMapTemplate(IAppContext context, PrintingPlugin plugin) { OnCreate(context); _plugin = plugin; }
public CmdCloseLayoutDesign(IAppContext context, BasePlugin plugin) { OnCreate(context); _plugin = plugin as PrintingPlugin; }