Beispiel #1
0
        // method or command

        public void CreateRoom()
        {
            createRoomModel.InputEmailMember = Email.Split(separators, StringSplitOptions.RemoveEmptyEntries);
            if (createRoomModel.IsValidCreateRoom())
            {
                createRoomModel.CreateRoom();
            }
            else
            {
                MessageBox.Show("Something is wrong. Please try again", "Create room failed",
                                MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }