Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            button1.Enabled = false;

            var s = new ApplicationWebService();

            s.AddItem(textBox1.Text,
                k =>
                {
                    this.Close();
                }
            );
        }
Пример #2
0
        private void AtRefresh()
        {
            this.listBox1.Items.Clear();

            var s = new ApplicationWebService();
            button1.Enabled = false;
            s.EnumerateItems("",
                k =>
                {
                    button1.Enabled = true;

                    this.listBox1.Items.Add(k);
                }
            );
        }