コード例 #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
ファイル: MenuManager.cs プロジェクト: mayatforest/Refractor
        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
ファイル: MainForm.cs プロジェクト: mayatforest/Refractor
        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
ファイル: OptionsForm.cs プロジェクト: mayatforest/Refractor
        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
ファイル: LookupHelper.cs プロジェクト: mayatforest/Refractor
 internal LookupHelper(WindowManager windowManager)
 {
     _windowManager = windowManager;
 }
コード例 #10
0
 internal PluginManager(IServiceProvider serviceProvider)
 {
     _windowManager = (WindowManager)serviceProvider.GetService(typeof(WindowManager));
 }