示例#1
0
        private void ListBoxOverView_SelectionChanged(object sender, SelectionChangedEventArgs e) //display text
        {
            displaySnippit = _repo.GetSnippit(ListBoxOverView.SelectedIndex + 1);

            if (displaySnippit != null)
            {
                MainSnipWindow.Text = displaySnippit.SnipContent;
            }
        }
示例#2
0
 public void RemoveSnippitFromRepo(CodeSnippit snippit)
 {
     _snippitListRepo.Remove(snippit);
 }
示例#3
0
 public void AddSnippitToRepo(CodeSnippit snippit)
 {
     _snippitListRepo.Add(snippit);
 }
示例#4
0
        private CodeSnippit CreateNewSnippet()
        {
            CodeSnippit newSnippit = new CodeSnippit(newSnipName, newSnipSummary, newSnipContent);

            return(newSnippit);
        }