private void button1_Click(object sender, EventArgs e) { this.Text = "processing"; var il = new Il { Ad = "proxy tester", Aktif = true }; //classic //IIlBusiness ilb = HRC.Library.ContextFoundation.ProxyGenerator<IlBusiness, IIlBusiness>.GetProxy(); //cache IIlBusiness ilb = ProxyHelper<IIlBusiness, IlBusiness>.Instance.AddOrGet(); ilb.DoSomething(il); this.Text = "process completed"; updateCounter++; label1.Text = updateCounter.ToString(); }
private void button2_Click(object sender, EventArgs e) { var il = new Il { Ad = "hede" }; var schema = SchemaCollection.Instance.GetSchema(il); }