private void ReadyExecute(object obj) { if (!edit) { dataManager.AddDish(dishModel); } else { dataManager.SetDishData(name, dishModel); } WindowController.CloseWindow(); }