public void ProfileSelected(RemoteProfileViewModel profile) { this.Profile = null; this.Board = null; this.NavigationNames.Clear(); this.NotifyPropertyChanged("NavigationName"); if (profile != null && ChannelSession.Settings.RemoteProfileBoards.ContainsKey(profile.ID)) { this.Profile = profile; RemoteProfileBoardsModel profileBoards = ChannelSession.Settings.RemoteProfileBoards[profile.ID]; this.Board = new RemoteBoardViewModel(profileBoards.Boards[Guid.Empty]); this.AddRemoveNavigationName(this.Profile.Name); } this.RefreshBoard(); }
public RemoteBoardSettingsControlViewModel(RemoteProfileViewModel profile, RemoteBoardViewModel board) { this.Profile = profile; this.Board = board; }
public RemoteBoardSettingsControl(RemoteProfileViewModel profile, RemoteBoardViewModel board) { this.DataContext = new RemoteBoardSettingsControlViewModel(profile, board); InitializeComponent(); }