public void EditMethod()
 {
     if (SelectedItem != null)
     {
         var newWindow = new SubjectManagerWindow(SelectedItem);
         newWindow.Show();
     }
 }
        public void AddMethod()
        {
            var newWindow = new SubjectManagerWindow();

            newWindow.Show();
        }