// 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"); }
private void nesterCB(XcoQueue<Nest> source, Nest entry) { this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " zusammengestellt" + Environment.NewLine); })); }
private void bemalteEierNotifyCB(XcoQueue<int> source, int entry) { this.Invoke(new Action(() => { label2.Text = (System.Convert.ToInt32(label2.Text) + entry).ToString(); })); }
private void bemalteEierCB(XcoQueue<Ei> source, Ei entry) { this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " bemalt" + Environment.NewLine); })); }
private void ausgeliefertNotifyCB(XcoQueue<int> source, int entry) { this.Invoke(new Action(() => { label5.Text = (System.Convert.ToInt32(label5.Text) + entry).ToString(); })); }
private void ausgeliefertCB(XcoQueue<Nest> source, Nest entry) { this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " ausgeliefert" + Environment.NewLine); })); }
private void schokoHasenNotifyCB(XcoQueue<int> source, int entry) { this.Invoke(new Action(() => { label3.Text = (System.Convert.ToInt32(label3.Text) + entry).ToString(); })); }
private void schokoHasenCB(XcoQueue<SchokoHase> source, SchokoHase entry) { this.Invoke(new Action(() => { textBox3.AppendText(entry.ToString() + " produziert" + Environment.NewLine); })); }
private void nesterNotifyCB(XcoQueue<int> source, int entry) { this.Invoke(new Action(() => { label4.Text = (System.Convert.ToInt32(label4.Text) + entry).ToString(); })); }
// 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); }