コード例 #1
0
ファイル: ContextForm.cs プロジェクト: zobo/xdebugclient
        public ContextForm(xdc.XDebug.Client client, string text)
        {
            InitializeComponent();
            this.Text = this.TabText = text;

            properyControl1.Client = client;
        }
コード例 #2
0
ファイル: SourceFileLoader.cs プロジェクト: zobo/xdebugclient
        public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename)
        {
            string sourceCode = _client.Source(filename);

            targetForm.LoadSourceAsFile(sourceCode);

            return true;
        }
コード例 #3
0
        public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename)
        {
            try
            {
                targetForm.LoadFile(filename);
            } catch (Exception e)
            {
                MessageBox.Show("Unable to open file: " + filename + "(" + e.Message + ")" );
                return false;
            }

            return true;
        }
コード例 #4
0
ファイル: PropertyForm.cs プロジェクト: zobo/xdebugclient
        public PropertyForm(xdc.XDebug.Client client)
        {
            InitializeComponent();

            properyControl1.Client = client;
        }
コード例 #5
0
ファイル: IFileLoader.cs プロジェクト: zobo/xdebugclient
 public abstract bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename);
コード例 #6
0
ファイル: MainForm.cs プロジェクト: zobo/xdebugclient
        void _callstackFrm_StackSelected(object sender, xdc.Forms.StackEventArgs e)
        {
            Location loc = new Location();
            loc.filename = e.StackEntry.fileName;
            loc.line = e.StackEntry.lineNumber - 1;

            _client.StackDepth = e.StackEntry.level;

            this.PrepareFileForAccess(loc.filename);
            this.SetActiveFileAndLine(loc);
            // re get context
            List<Property> ctx = _client.GetContext("0");
            _localContextFrm.LoadPropertyList(ctx);
            ctx = _client.GetContext("1");
            _globalContextFrm.LoadPropertyList(ctx);
        }