Ejemplo n.º 1
0
 public void NewProfile(object parameter)
 {
     System.Diagnostics.Debug.WriteLine("Updated");
     ScList.Clear();
     LoadedProfile = new Profile();
     NotifyPropertyChanged();
 }
Ejemplo n.º 2
0
        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);
            }
        }