Exemple #1
0
 private void ActivateProfile(object sender, RoutedEventArgs e)
 {
     if (!Profile.ActivateProfile())
     {
         MessageBox.Show("The Profile could not be activated, see the log for more details", "Profile failed to activate!", MessageBoxButton.OK, MessageBoxImage.Exclamation);
     }
 }
Exemple #2
0
        public void ActivateProfileProfileIDSpecified()
        {
            Profile profile = new Profile();

            profile.ActivateProfile(13);
        }
Exemple #3
0
        public void ActivateProfileInvalidProfileIDSpecified()
        {
            Profile profile = new Profile();

            profile.ActivateProfile(999);
        }
Exemple #4
0
        public void ActivateProfileNoProfileIDSpecified()
        {
            Profile profile = new Profile();

            profile.ActivateProfile(int.Parse(null));
        }