public Diagram(EA.Repository rep, EaHistoryList history, EaHistoryList bookmark)
        {
            _repository = rep;
            _history    = history;
            _bookmark   = bookmark;
            InitializeComponent();


            this.listBoxDiagrams.ItemsSource  = _history.GetAll();
            this.listBoxBookmarks.ItemsSource = _bookmark.GetAll();
        }
Exemple #2
0
 public void SetHistory(EaHistoryList history)
 {
     _historyList = history;
     if (history is EaHistory)
     {
         // disable bookmark name and type
         this.listBoxDiagrams.Columns[1].Visibility = Visibility.Collapsed;
         // disable add/remove bookmark buttons
         this.btnBookmarkAdd.Visibility    = Visibility.Collapsed;
         this.btnBookmarkRemove.Visibility = Visibility.Collapsed;
     }
     this.listBoxDiagrams.Columns[2].Visibility = Visibility.Collapsed;
     this.listBoxDiagrams.Columns[3].Visibility = Visibility.Collapsed;
 }
 public void setHistory(EaHistoryList history)
 {
     userControlWpf1.SetHistory(history);
 }