예제 #1
0
 internal ProjectWatcher(WindowManager windowManager, 
     Control control, DWatchChanged watchChanged)
 {
     _windowManager = windowManager;
     _control = control;
     _watchChanged = watchChanged;
     _timer.Interval = 2000;
     _timer.Tick += new EventHandler(_timer_Tick);
 }
예제 #2
0
        public StatusManager(WindowManager windowManager, StatusStrip statusStrip)
        {
            _windowManager = windowManager;
            _statusStrip = statusStrip;

            _leftLabel = new ToolStripStatusLabel();
            _leftLabel.Alignment = ToolStripItemAlignment.Right;

            _statusStrip.Items.Add(_leftLabel);
        }
예제 #3
0
        internal MenuManager(WindowManager windowManager, MenuStrip menuStrip)
        {
            _windowManager = windowManager;
            _menuStrip = menuStrip;

            _addToFavouritesMI.Name = "_addToFavouritesMI";
            _addToFavouritesMI.Size = new System.Drawing.Size(171, 22);
            _addToFavouritesMI.Text = "Add to Favourites";
            _addToFavouritesMI.Click += new System.EventHandler(_addToFavouritesMI_Click);
            _addToFavouritesMI.Tag = new MenuInfo(null, null);
        }
예제 #4
0
        public MainForm()
        {
            // Make sure the SDIL static class is initialized.
            // This is an issue with the pulgin architecture.
            SDILReader.Globals.LoadOpCodes();

            InitializeComponent();

            // Start up the window mediator.
            _windowManager = new WindowManager(this, this.dockPanel, this.statusBar, this.mainMenu);
        }
예제 #5
0
        public HistoryBrowser(IServiceProvider serviceProvider)
        {
            InitializeComponent();

            _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));

            _nodeTextBox = new NodeTextBox();
            _nodeTextBox.ToolTipProvider = new ToolTipProvider();
            _nodeTextBox.DataPropertyName = "Text";
            _nodeTextBox.EditEnabled = true;
            _treeView.NodeControls.Add(this._nodeTextBox);

            _model = new TreeModel();
            _treeView.Model = _model;
        }
예제 #6
0
        internal FavouritesBrowser(IServiceProvider serviceProvider)
        {
            InitializeComponent();

            _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));

            // We're using a static Node sublcassed model for this aga tree.
            _nodeTextBox.ToolTipProvider = new FavouritesToolTipProvider();
            _nodeTextBox.DrawText += new EventHandler<DrawEventArgs>(_nodeTextBox_DrawText);
            _treeModel = new TreeModel();
            _tree.NodeMouseClick += new EventHandler<TreeNodeAdvMouseEventArgs>(_tree_NodeMouseClick);
            _tree.Model = _treeModel;
            _tree.BackColor = Color.LightGoldenrodYellow;

            _windowManager.ProjectBrowser.OnFilesChanged += new EventHandler(ProjectBrowser_OnFilesChanged);
        }
예제 #7
0
        public ProjectBrowser(IServiceProvider serviceProvider)
        {
            InitializeComponent();

            _defaultFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));
            _statusManager = (IStatusManager)_windowManager.GetService(typeof(IStatusManager));

            _lookup = new LookupHelper(_windowManager);

            // The below shadow copy technique does *not* stop the assemblies being locked.
            //AppDomain.CurrentDomain.SetShadowCopyFiles();
            //AppDomain.CurrentDomain.SetShadowCopyPath("c:\\temp");
            // SetupInformation is used only at start of domain.
            // Loading them into another domain still locks them.
            // Only thing that seems to prevent locking is bytecopy load.
            // Bytecopy load has problems finding referenced assemblies.
            // This can be got around with CurrentDomain_AssemblyResolve?
        }
예제 #8
0
        internal OptionsBrowser(IServiceProvider serviceProvider)
        {
            InitializeComponent();

            _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));

            listBox1.Items.Clear();
            listBox1.Items.Add(new ListBoxItem("", false, false, "Main", _windowManager.AppOptions));

            foreach (IParserPlugin plugin in _windowManager.PluginManager.ParserPlugins)
            {
                PluginOptions po = plugin.GetOptions();
                listBox1.Items.Add(new ListBoxItem(plugin.GetID(), true, false, plugin.GetID(), po));
            }

            foreach (IWindowPlugin plugin in _windowManager.PluginManager.WindowPlugins)
            {
                PluginOptions po = plugin.GetOptions();
                listBox1.Items.Add(new ListBoxItem(plugin.GetID(), false, true, plugin.GetID(), po));
            }

            listBox1.SelectedIndex = 0;
        }
예제 #9
0
 internal LookupHelper(WindowManager windowManager)
 {
     _windowManager = windowManager;
 }
예제 #10
0
 internal PluginManager(IServiceProvider serviceProvider)
 {
     _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));
 }