void EditSelectedProfileExecuted() { if (newProfileWindow != null) { newProfileWindow.Close(); } newProfileWindow = new ProfileEditWindow(SelectedProfile); newProfileWindow.Show(); }
void AddNewProfileExecuted() { //Create the new profile and if success, open the profile in a new window to edit var newProfile = new Profile() { ProfileName = "Empty Profile", DateCreated = DateTime.Now, }; if (HostLists.HostLists.AddNewProfile(newProfile)) { if (newProfileWindow != null) newProfileWindow.Close(); newProfileWindow = new ProfileEditWindow(newProfile); newProfileWindow.Show(); } }
void AddNewProfileExecuted() { //Create the new profile and if success, open the profile in a new window to edit var newProfile = new Profile() { ProfileName = "Empty Profile", DateCreated = DateTime.Now, }; if (HostLists.HostLists.AddNewProfile(newProfile)) { if (newProfileWindow != null) { newProfileWindow.Close(); } newProfileWindow = new ProfileEditWindow(newProfile); newProfileWindow.Show(); } }
void EditSelectedProfileExecuted() { if (newProfileWindow != null) newProfileWindow.Close(); newProfileWindow = new ProfileEditWindow(SelectedProfile); newProfileWindow.Show(); }