Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Common Dispatcher Method
David Smith
9y
355
1
Reply
Can someone help me make a common dispatcher method to invoke any control method, if that make any sense. Is there a better way to do this below also. I want to turn this method functionality into something common, because I have to use multiple times in various places.
private Dataset _ColorDataset; //This is a global dataset
Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(DataSourceRefresh));
private void DataSourceRefreshHack()
{
this.colorTable.DataSource = _ColorDataset.Tables["colorTable"].AsDataView();
}
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Display RTFText with image in crystal Report
The query string is too long error MVC 4 C#