예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            List <FriendType> AllType = new List <FriendType>();

            cboType.DataSource    = FriendTypeOp.GetAllFridens();
            cboType.DisplayMember = "Typename";
            cboType.ValueMember   = "Fid";
        }
예제 #2
0
        private void Form2_Load(object sender, EventArgs e)
        {
            List <FriendType> AllType = FriendTypeOp.GetAllFridens();

            FriendType type1 = new FriendType();

            type1.Fid      = 0;
            type1.Typename = "所有";
            AllType.Insert(0, type1);

            cboType.DataSource    = AllType;
            cboType.DisplayMember = "Typename";
            cboType.ValueMember   = "Fid";
        }