Пример #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);
 }