public void NewProfile(object parameter) { System.Diagnostics.Debug.WriteLine("Updated"); ScList.Clear(); LoadedProfile = new Profile(); NotifyPropertyChanged(); }
public void LoadProfile(object parameter) { System.Diagnostics.Debug.WriteLine("Updated"); OpenFileDialog o = new OpenFileDialog(); o.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory + @"Profiles\"; o.ShowDialog(); if (o.FileName != "") { String sr = o.FileName; System.Diagnostics.Debug.WriteLine("Updated : " + sr); _loadedProfile = DataService.loadData(sr); ScList.Clear(); ScList = DataService.updateScList(_loadedProfile); } }