Beispiel #1
0
        private void InitRoomListForm(string[] args)
        {
            string value = string.Empty;

            if (args != null)
            {
                StringBuilder arg = new StringBuilder();
                for (int i = 1; i < args.Length; i++)
                {
                    arg.Append(args[i]);
                    if (i + 1 != args.Length)
                    {
                        arg.Append(" ");
                    }
                }
                value = arg.ToString();
            }
            if (!(room == null ||
                  room.IsDisposed))
            {
                room.Activate();
                return;
            }
            room = new RoomListForm(value);
            room.Show();
            room.Activate();
        }
Beispiel #2
0
 private void InitRoomListForm()
 {
     if (!(room == null ||
           room.IsDisposed))
     {
         room.Activate();
         return;
     }
     room = new RoomListForm();
     room.Show();
     room.Activate();
 }