Ejemplo n.º 1
0
        public ChatTab(PengChat3ClientSock sock, Room room)
        {
            InitializeComponent();

            Sock = sock;
            Room = room;

            Header = Room.Name;

            Members = new ObservableCollection<Member>();
            listView_Members.ItemsSource = Members;

            button_Exit.Content = ResourceManager.GetStringByKey("Str_Exit");
        }
Ejemplo n.º 2
0
 public RoomInfoEventArgs(Room[] rooms)
 {
     Rooms = rooms;
 }
Ejemplo n.º 3
0
 public CreateRoomEventArgs(ErrorCode errcode, Room newroom)
 {
     ErrCode = errcode;
     NewRoom = newroom;
 }
Ejemplo n.º 4
0
        internal static Room ToRoom(string pack)
        {
            var s = pack.Split('\t');

            if (s.Length == 5)
            {
                Room r = new Room();
                r.ID = Convert.ToUInt32(s[0]);
                r.Name = s[1];
                r.Master = s[2];
                r.MaxConnectorNum = Convert.ToInt16(s[3]);
                r.IsNeedPassword = s[4] == "1";

                return r;
            }
            else
            {
                return null;
            }
        }