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(); }
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(); }
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); }
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); }