0

I am working on an application which is guest house management system.it works fine but what i want is to embed the background worker class in my project.

here is how it looks enter image description here

I want list of rooms to be updated automatically on saving the information on the Add room form.For displaying room i am using grid-view and for adding new room i created a new form and add LINQ to SQL query code to save the information of new room.

How should i go about it in C#. Any alternate suggestion would also be appreciated.

4

1 回答 1

1

您可以创建一个在当前线程中分离的新线程。

Thread workerThread = new Thread(delegate()
{
// Perform your task here
});

当你想调用它时,只需调用

workerThread.Start();
于 2013-09-17T10:25:02.580 回答