public ContextForm(xdc.XDebug.Client client, string text) { InitializeComponent(); this.Text = this.TabText = text; properyControl1.Client = client; }
public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename) { string sourceCode = _client.Source(filename); targetForm.LoadSourceAsFile(sourceCode); return true; }
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; }
public PropertyForm(xdc.XDebug.Client client) { InitializeComponent(); properyControl1.Client = client; }
public abstract bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename);
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); }