Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 public ProfileEditViewModel(Profile profile)
 {
     this.Profile = profile;
 }
Esempio n. 3
0
        public ProfileEditWindow(Profile profile)
        {
            InitializeComponent();

            PEditViewModel = new ProfileEditViewModel(profile);
        }
Esempio n. 4
0
 public static bool UpdateProfile(Profile newProfile)
 {
     // Return true for success, false for fail
       return true;
 }