public LogOnWindow()
        {
            InitializeComponent();
            LogOnWindowViewModel vm = new LogOnWindowViewModel();

            DataContext = vm;
            if (vm.CloseAction == null)
            {
                vm.CloseAction = new Action(this.Close);
            }
            if (vm.OpenRoomListWindowAction == null)
            {
                vm.OpenRoomListWindowAction = new Action(() => { RoomListWindow roomListWindow = new RoomListWindow(vm.TextData.NickName);  roomListWindow.Show(); });
            }
        }
Exemplo n.º 2
0
 public ConnectCommand(LogOnWindowViewModel viewModel)
 {
     _ViewModel = viewModel;
 }