Click here to Skip to main content
15,905,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to cache data with dictionary in Pin
mhd.sbt14-Feb-13 23:40
mhd.sbt14-Feb-13 23:40 
GeneralRe: how to cache data with dictionary in Pin
Dave Kreskowiak15-Feb-13 1:58
mveDave Kreskowiak15-Feb-13 1:58 
AnswerRe: how to cache data with dictionary in Pin
Abhinav S9-Feb-13 21:06
Abhinav S9-Feb-13 21:06 
QuestionHow to add three columns in shpae file using c# Pin
devchina8-Feb-13 23:49
devchina8-Feb-13 23:49 
AnswerRe: How to add three columns in shpae file using c# Pin
Richard MacCutchan9-Feb-13 0:10
mveRichard MacCutchan9-Feb-13 0:10 
GeneralRe: How to add three columns in shpae file using c# Pin
devchina9-Feb-13 0:49
devchina9-Feb-13 0:49 
GeneralRe: How to add three columns in shpae file using c# Pin
Richard MacCutchan9-Feb-13 0:52
mveRichard MacCutchan9-Feb-13 0:52 
AnswerRe: How to add three columns in shpae file using c# Pin
Eddy Vluggen9-Feb-13 0:18
professionalEddy Vluggen9-Feb-13 0:18 
Questionlinq to list and lamda expresion Pin
mhd.sbt8-Feb-13 23:44
mhd.sbt8-Feb-13 23:44 
AnswerRe: linq to list and lamda expresion Pin
Eddy Vluggen9-Feb-13 0:14
professionalEddy Vluggen9-Feb-13 0:14 
GeneralRe: linq to list and lamda expresion Pin
mhd.sbt9-Feb-13 1:23
mhd.sbt9-Feb-13 1:23 
AnswerRe: linq to list and lamda expresion Pin
N a v a n e e t h9-Feb-13 0:23
N a v a n e e t h9-Feb-13 0:23 
GeneralRe: linq to list and lamda expresion Pin
Richard Deeming11-Feb-13 1:40
mveRichard Deeming11-Feb-13 1:40 
QuestionThreading/GIF animation [Solved] Pin
Amlanjyoti Saikia8-Feb-13 22:58
Amlanjyoti Saikia8-Feb-13 22:58 
AnswerRe: Threading/GIF animation Pin
N a v a n e e t h9-Feb-13 0:17
N a v a n e e t h9-Feb-13 0:17 
GeneralRe: Threading/GIF animation Pin
Amlanjyoti Saikia9-Feb-13 1:24
Amlanjyoti Saikia9-Feb-13 1:24 
AnswerRe: Threading/GIF animation Pin
Eddy Vluggen9-Feb-13 0:17
professionalEddy Vluggen9-Feb-13 0:17 
GeneralRe: Threading/GIF animation Pin
Amlanjyoti Saikia9-Feb-13 1:53
Amlanjyoti Saikia9-Feb-13 1:53 
AnswerRe: Threading/GIF animation [Solved] Pin
Dave Kreskowiak9-Feb-13 3:44
mveDave Kreskowiak9-Feb-13 3:44 
GeneralRe: Threading/GIF animation [Solved] Pin
Amlanjyoti Saikia1-Mar-13 19:20
Amlanjyoti Saikia1-Mar-13 19:20 
GeneralRe: Threading/GIF animation [Solved] Pin
Dave Kreskowiak2-Mar-13 3:56
mveDave Kreskowiak2-Mar-13 3:56 
AnswerRe: Threading/GIF animation [Solved] [Updated Code] Pin
Amlanjyoti Saikia1-Mar-13 19:21
Amlanjyoti Saikia1-Mar-13 19:21 
My code was absolutely stupid and unnecessarily complicated. Brain fart...

This is the new code sample for anyone interested.

C#
public class MainForm
{
WaitForm waitForm;

MainForm()
{
//Initializations
backgorundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bWorkerCompletedHandler_AllReports);
}

button1_ClickEventHandler(object sender, EventArgs e)
{
  waitForm = new Waitform;
  waitform.Show();
  backgroundWorker1.DoWork += new DoWorkEventHandler(bWorkerHandler_Option1);
  backgroundWorker1.RunWorkerAsync(ReportCategory1Object);
}

void bWorkerHandler_Option1(object sender, DoWorkEventArgs e)
{
//do boring stuff with e.Argument.
Foo(e.Argument);
}

button2_ClickEventHandler(object sender, EventArgs e)
{
  waitForm = new Waitform;
  waitform.Show();
  backgroundWorker1.DoWork += new DoWorkEventHandler(bWorkerHandler_Option2);
  backgroundWorker1.RunWorkerAsync(ReportCategory2Object);
}

void bWorkerHandler_Option2(object sender, DoWorkEventArgs e)
{
//do more boring stuff with e.Argument.
Bar(e.Argument);
}

void bWorkerCompletedHandler_AllReports(object sender, RunWorkerCompletedEventArgs e)
{
  backgroundWorker1 = new BackgroundWorker(); //Shortcut to detach the DoWorkEvents. There are a lot of DoWorkEvents.
  backgorundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bWorkerCompletedHandler_AllReports);
  waitForm.Close();
  //View report and cleanup stuff...
}

void Foo(object Something)
{
//Do Something
}

void Bar(object AnotherThing)
{
//Do Anotherthing
}
}

Questionhow to access the stream of the ip camera via c# using Aforge Pin
Glendonz8-Feb-13 22:56
Glendonz8-Feb-13 22:56 
AnswerRe: how to access the stream of the ip camera via c# using Aforge Pin
OriginalGriff8-Feb-13 23:04
mveOriginalGriff8-Feb-13 23:04 
GeneralRe: how to access the stream of the ip camera via c# using Aforge Pin
Glendonz13-Feb-13 19:31
Glendonz13-Feb-13 19:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.