Example #1
0
 public AddIngredence(string baseName)
 {
     InitializeComponent();
     this.baseName  = baseName;
     ListOfCategory = FileAdapter.GetAllCategory(baseName);
     try
     {
         ListOfCategory.Add(FileAdapter.GetDiagnoseName(baseName));
     }
     catch
     {
     }
     Category.ItemsSource = ListOfCategory;
 }