コード例 #1
0
        public DebugService()
        {
            bpboundchange = new EventHandler(BpBoundChange);
            localsview    = new ListViewEx();
            autosview     = new ListViewEx();
            thisview      = new ListViewEx();
            callstackview = new ListViewEx();


            InitVariableView(localsview, autosview, thisview);
            InitCallstackView(callstackview);

            //      ServiceHost.Project.Opened += new EventHandler(ProjectEvent);
            //      ServiceHost.Project.Closed += new EventHandler(ProjectEvent);
            //
            //      ServiceHost.File.Opened +=new FileManagerEventHandler(FileEvent);
            //      ServiceHost.File.Closed +=new FileManagerEventHandler(FileEvent);
            if (SettingsService.idemode)
            {
                IWindowService ws = ServiceHost.Window;

                IDockContent tbp = Runtime.DockFactory.Content();
                tbp.Text = "Locals";
                tbp.Icon = ServiceHost.ImageListProvider.GetIcon("console.png");
                tbp.Controls.Add(localsview);
                tbp.Show(ws.Document, DockState.DockBottom);
                tbp.Hide();
                tbp.HideOnClose = true;

                tbp           = Runtime.DockFactory.Content();
                tbp.Text      = "Autos";
                tbp.Icon      = ServiceHost.ImageListProvider.GetIcon("console.png");
                autosview.Tag = tbp;
                tbp.Controls.Add(autosview);
                tbp.Show(ws.Document, DockState.DockBottom);
                tbp.Hide();
                tbp.HideOnClose = true;

                tbp          = Runtime.DockFactory.Content();
                tbp.Text     = "This";
                tbp.Icon     = ServiceHost.ImageListProvider.GetIcon("console.png");
                thisview.Tag = tbp;
                tbp.Controls.Add(thisview);
                tbp.Show(ws.Document, DockState.DockBottom);
                tbp.Hide();
                tbp.HideOnClose = true;

                tbp               = Runtime.DockFactory.Content();
                tbp.Text          = "Callstack";
                tbp.Icon          = ServiceHost.ImageListProvider.GetIcon("console.png");
                callstackview.Tag = tbp;
                tbp.Controls.Add(callstackview);
                tbp.Show(ws.Document, DockState.DockBottom);
                tbp.Hide();
                tbp.HideOnClose = true;
            }
        }
コード例 #2
0
 public ErrorService()
 {
     if (SettingsService.idemode)
     {
         tbp      = Runtime.DockFactory.Content();
         tbp.Text = "Results";
         tbp.Icon = ServiceHost.ImageListProvider.GetIcon("console.png");
         tbp.Controls.Add(view);
         tbp.Show(ServiceHost.Window.Document, DockState.DockBottom);
         view.Tag = tbp;
         tbp.Hide();
         tbp.HideOnClose = true;
     }
 }
コード例 #3
0
 public StandardConsole()
 {
     if (SettingsService.idemode)
     {
         tbp       = Runtime.DockFactory.Content();
         tbp.Text  = "Output";
         tbp.Icon  = ServiceHost.ImageListProvider.GetIcon("console.png");
         wcon.Dock = DockStyle.Fill;
         tbp.Controls.Add(wcon);
         tbp.Show(ServiceHost.Window.Document, DockState.DockBottom);
         tbp.Hide();
         tbp.HideOnClose = true;
     }
 }
コード例 #4
0
ファイル: IPropertyService.cs プロジェクト: anthrax3/xacc.ide
        public PropertyService()
        {
            if (SettingsService.idemode)
            {
                tbp      = Runtime.DockFactory.Content();
                tbp.Text = "Properties";
                tbp.Icon = ServiceHost.ImageListProvider.GetIcon("console.png");
                tbp.Controls.Add(props);
                tbp.Show(ServiceHost.Window.Document, DockState.DockRightAutoHide);
                props.Tag = tbp;
                tbp.Hide();
                tbp.HideOnClose = true;

                props.propertyGrid1.PropertyValueChanged += new PropertyValueChangedEventHandler(propertyGrid1_PropertyValueChanged);
            }
        }
コード例 #5
0
        public ProjectManager()
        {
            string recfn = Application.StartupPath + Path.DirectorySeparatorChar + "recentprojects.ini";

            if (File.Exists(recfn))
            {
                TextReader reader = new StreamReader(recfn, Encoding.Default, true);
                string     rf;
                //fast CPU hack ;p
                int priority = 0;

                while ((rf = reader.ReadLine()) != null)
                {
                    if (File.Exists(rf))
                    {
                        recentfiles.Add(new MRUFile(rf, priority++));
                    }
                }
                reader.Close();
            }

            if (SettingsService.idemode)
            {
                tp.Text = "Project Explorer";
                tp.Icon = ServiceHost.ImageListProvider.GetIcon("Project.Type.png");
                to.Text = "Outline";
                to.Icon = ServiceHost.ImageListProvider.GetIcon("CodeValueType.png");
                tp.Controls.Add(outlineview);
                to.Controls.Add(ServiceHost.CodeModel.Tree);

                IWindowService ws = ServiceHost.Window;
                tp.Show(ws.Document, DockState.DockRightAutoHide);
                to.Show(ws.Document, DockState.DockRightAutoHide);
                to.Hide();
                tp.Hide();
                to.HideOnClose = true;
                tp.HideOnClose = true;


                OutlineView.DoubleClick += new EventHandler(Tree_DoubleClick);

                buildengine.BinPath = ServiceHost.Discovery.NetRuntimeRoot;
            }

            Opened += new EventHandler(ProjectManagerEvent);
            Closed += new EventHandler(ProjectManagerEvent);
        }