示例#1
0
 private void CreateButtonClick(object sender, EventArgs e)
 {
     var form = new RoomForm(engine.CurrentUserId);
     if (form.ShowDialog(this) == DialogResult.Cancel)
         return;
     var room = form.GetRoom();
     room.Owner = engine.CurrentUserId;
     engine.CreateRoom(room);
     UpdateRooms();
 }
示例#2
0
        private void CreateButtonClick(object sender, EventArgs e)
        {
            var form = new RoomForm(engine.CurrentUserId);

            if (form.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }
            var room = form.GetRoom();

            room.Owner = engine.CurrentUserId;
            engine.CreateRoom(room);
            UpdateRooms();
        }
示例#3
0
        private void СhangeButtonClick(object sender, EventArgs e)
        {
            var oldRoom = GetRoom();

            if (oldRoom == null)
            {
                return;
            }
            var form = new RoomForm(engine.CurrentUserId);

            //var oldRoomName = oldRoom.Name;
            form.SetRoom(oldRoom);
            if (form.ShowDialog(this) == DialogResult.Cancel)
            {
                return;
            }
            //var room = form.GetRoom();
            //chat.UpdateRoom(oldRoomName, room);
        }
示例#4
0
 private void СhangeButtonClick(object sender, EventArgs e)
 {
     var oldRoom = GetRoom();
     if (oldRoom == null)
         return;
     var form = new RoomForm(engine.CurrentUserId);
     //var oldRoomName = oldRoom.Name;
     form.SetRoom(oldRoom);
     if (form.ShowDialog(this) == DialogResult.Cancel)
         return;
     //var room = form.GetRoom();
     //chat.UpdateRoom(oldRoomName, room);
 }