Example #1
0
 // Constructor to build a new XcoQueue in local space.
 public SQueue(XcoSpace space, string name)
 {
     this.space = space;
     this.queue = new XcoQueue <T>(1000);
     this.count = new XcoQueue <int>(1000);
     this.space.Add(this.queue, name);
     this.space.Add(this.count, name + "Notify");
 }
Example #2
0
File: Form1.cs Project: eier/sbc
 private void nesterCB(XcoQueue<Nest> source, Nest entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " zusammengestellt" + Environment.NewLine); }));
 }
Example #3
0
File: Form1.cs Project: eier/sbc
 private void bemalteEierNotifyCB(XcoQueue<int> source, int entry)
 {
     this.Invoke(new Action(() => { label2.Text = (System.Convert.ToInt32(label2.Text) + entry).ToString(); }));
 }
Example #4
0
File: Form1.cs Project: eier/sbc
 private void bemalteEierCB(XcoQueue<Ei> source, Ei entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " bemalt" + Environment.NewLine); }));
 }
Example #5
0
File: Form1.cs Project: eier/sbc
 private void ausgeliefertNotifyCB(XcoQueue<int> source, int entry)
 {
     this.Invoke(new Action(() => { label5.Text = (System.Convert.ToInt32(label5.Text) + entry).ToString(); }));
 }
Example #6
0
File: Form1.cs Project: eier/sbc
 private void ausgeliefertCB(XcoQueue<Nest> source, Nest entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " ausgeliefert" + Environment.NewLine); }));
 }
Example #7
0
File: Form1.cs Project: eier/sbc
 private void schokoHasenNotifyCB(XcoQueue<int> source, int entry)
 {
     this.Invoke(new Action(() => { label3.Text = (System.Convert.ToInt32(label3.Text) + entry).ToString(); }));
 }
Example #8
0
File: Form1.cs Project: eier/sbc
 private void schokoHasenCB(XcoQueue<SchokoHase> source, SchokoHase entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " produziert" + Environment.NewLine); }));
 }
Example #9
0
File: Form1.cs Project: eier/sbc
 private void ausgeliefertCB(XcoQueue<Nest> source, Nest entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " ausgeliefert" + Environment.NewLine); }));
 }
Example #10
0
File: Form1.cs Project: eier/sbc
 private void nesterNotifyCB(XcoQueue<int> source, int entry)
 {
     this.Invoke(new Action(() => { label4.Text = (System.Convert.ToInt32(label4.Text) + entry).ToString(); }));
 }
Example #11
0
File: Form1.cs Project: eier/sbc
 private void nesterCB(XcoQueue<Nest> source, Nest entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " zusammengestellt" + Environment.NewLine); }));
 }
Example #12
0
File: Form1.cs Project: eier/sbc
 private void schokoHasenCB(XcoQueue<SchokoHase> source, SchokoHase entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " produziert" + Environment.NewLine); }));
 }
Example #13
0
File: Form1.cs Project: eier/sbc
 private void bemalteEierCB(XcoQueue<Ei> source, Ei entry)
 {
     this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " bemalt" + Environment.NewLine); }));
 }
Example #14
0
 // Constructor using container discovery.
 public SQueue(XcoSpace space, string name, Uri remote_space_uri)
 {
     this.space = space;
     this.queue = space.Get <XcoQueue <T> >(name, remote_space_uri);
     this.count = space.Get <XcoQueue <int> >(name + "Notify", remote_space_uri);
 }