示例#1
0
        private void btnRenameProfile_Click(object sender, RoutedEventArgs e)
        {
            Profile profile = cmbProfiles.SelectedItem as Profile;
            if (profile != null)
            {
                RenameProfile form = new RenameProfile(profile);
                form.Owner = this;
                if (form.ShowDialog() == true)
                {
                    SaveProfiles();
                    _profiles.CreateJumpTasks(_jumpList);
                }

            }
        }
示例#2
0
 private void btnAddProfile_Click(object sender, RoutedEventArgs e)
 {
     Profile profile = new Profile();
     RenameProfile form = new RenameProfile(profile);
     form.Owner = this;
     form.Title = "Add Profile";
     if (form.ShowDialog() == true)
     {
         _profiles.Add(profile);
         cmbProfiles.SelectedItem = profile;
     }
 }