public void ClearResults() { _bs.DataSource = null; _dataTbl.Clear(); ActiveDocument.TextContent = String.Empty; ActiveTextArea.Invalidate(); ActiveTextArea.Update(); }
private void _bs_CurrentChanged(object sender, EventArgs e) { DataRowView row = _bs.Current as DataRowView; if (row == null) { ActiveDocument.TextContent = String.Empty; ActiveTextArea.Invalidate(); ActiveTextArea.Update(); return; } ActiveDocument.TextContent = row["ObjectScript"] as string; kryptonHeader1.Text = String.Format("Script of '{0}'",row["ObjectName"]); ActiveTextArea.Invalidate(); ActiveTextArea.Update(); _textEditor.BringToFront(); }