Example #1
0
 private void chbxCopyArticles_Checked(object sender, RoutedEventArgs e)
 {
     SelectProfileArticlesWindow dialog = new SelectProfileArticlesWindow(profiles);
     dialog.ShowDialog();
     if (dialog.SelectedArticles.Count < 1)
         chbxCopyArticles.IsChecked = false;
     else
     {
         copyArticles = new List<ArticleTemplate>();
         foreach (Article t in dialog.SelectedArticles)
             copyArticles.Add(t.ToArticleTemplate());
     }
 }
 private void chbxApplyOnOthers_Checked(object sender, RoutedEventArgs e)
 {
     ObservableCollection<Profile> p = new ObservableCollection<Profile>();
     p.Add(profile);
     SelectProfileArticlesWindow dlg = new SelectProfileArticlesWindow(p, 0, false, selectedArticle);
     dlg.ShowDialog();
     if (dlg.DialogResult != true)
     {
         chbxApplyOnOthers.IsChecked = false;
         additionalArticles.Clear();
     }
     else
         additionalArticles = dlg.SelectedArticles;
 }