Пример #1
0
        public AddOrEditFoodView(string selectedFoodName, int fooIndex)
        {
            InitializeComponent();
            index = fooIndex;
            Food selected = InfoStore.getFoodByName(selectedFoodName);

            txtDesc.Text = selected.Description;
            txtName.Text = selected.Name;
        }