コード例 #1
0
 public Socket_Client(IPEndPoint iPEnd, Sunny.UI.UIRichTextBox richTextBox, Sunny.UI.UIComboBox combo)
 {
     this.IPEnd    = iPEnd;
     this.RichText = richTextBox;
     this.ComboBox = combo;
     ComboBox.Items.Clear();//清空下拉
 }
コード例 #2
0
ファイル: AddCar.cs プロジェクト: soyun2/PSY_C-
        private string showCarCombo(object obj)
        {
            Sunny.UI.UIComboBox cb = obj as Sunny.UI.UIComboBox;
            string item            = cb.SelectedItem.ToString();

            return(item);
        }
コード例 #3
0
 public Socket_UDP(IPEndPoint iPEnd, Sunny.UI.UIRichTextBox richTextBox, Sunny.UI.UIComboBox combo, Sunny.UI.UITextBox uITextBox)
 {
     this.IPEnd    = iPEnd;
     this.RichText = richTextBox;
     this.ComboBox = combo;
     ComboBox.Items.Clear();//清空下拉
     this.uITextBox = uITextBox;
 }
コード例 #4
0
        private string showCarCombo(object obj)
        {
            Sunny.UI.UIComboBox cb = obj as Sunny.UI.UIComboBox;
            Console.WriteLine("index : " + cb.SelectedIndex);
            string item = cb.SelectedItem.ToString();

            return(item);
        }
コード例 #5
0
        private string showCarCombo(object obj)                  //object 타입의 sender를 받음
        {
            Sunny.UI.UIComboBox cb = obj as Sunny.UI.UIComboBox; // 들어온 정보가 Sunny UI의 콤보 박스로 부터 받아온지 알려주는 것[다형성]
            Console.WriteLine("index: " + cb.SelectedIndex);
            String item = cb.SelectedItem.ToString();            //콤보 박스에서 선택한 아이템을 받음

            if (cb.SelectedIndex > -1)
            {
                Console.WriteLine("선택: " + item);
            }
            return(item);
        }