Example #1
0
        internal void set_labeltext(object obj)
        {
            if (this.InvokeRequired)
            {
                deg_set_labeltext t = new deg_set_labeltext(set_labeltext);
                this.Invoke(t, new object[] { obj });
            }
            else
            {
                object[] objlbl = obj as object[];
                switch ((int)objlbl[0])
                {
                case 0:    //proxy count
                    label2.Text = objlbl[1].ToString();
                    break;

                case 1:    //goodlist
                    label7.Text = objlbl[1].ToString();
                    break;

                case 2:    //badlist
                    label12.Text = objlbl[1].ToString();
                    break;

                case 3:    //goodproxy
                    label13.Text = objlbl[1].ToString();
                    break;

                case 4:    //badproxy
                    label14.Text = objlbl[1].ToString();
                    break;
                }
            }
        }
Example #2
0
        internal void set_labeltext(object obj)
        {
            if (this.InvokeRequired)
            {
                deg_set_labeltext t = new deg_set_labeltext(set_labeltext);
                this.Invoke(t, new object[] { obj });

            }
            else
            {
                object[] objlbl = obj as object[];
                switch ((int)objlbl[0])
                {
                    case 0://proxy count
                        label2.Text = objlbl[1].ToString();
                        break;
                    case 1://goodlist
                        label7.Text = objlbl[1].ToString();
                        break;
                    case 2://badlist
                        label12.Text = objlbl[1].ToString();
                        break;
                    case 3://goodproxy
                        label13.Text = objlbl[1].ToString();
                        break;
                    case 4://badproxy
                        label14.Text = objlbl[1].ToString();
                        break;

                }

            }
        }