Exemplo n.º 1
0
Arquivo: Form1.cs Projeto: Gwee/csharp
        private void timer1_Tick(object sender, EventArgs e)
        {
            Filter filter = new Filter()
            {
                color = ClientColor.Text,
                shape = RectangleSquare,
                type  = ButtonLabel
            };

            var response = myICommon.GetControls(prevCounter, filter);

            if (response == null)
            {
                return;
            }

            prevCounter        = response.itemsNumber;
            arrControls_result = Helper.arrayControl(response.descArr);

            foreach (var item in arrControls_result)
            {
                this.Controls.Remove(item);
            }

            foreach (var item in arrControls_result)
            {
                this.Controls.Add(item);
            }
        }