private void AddStep_Click(object sender, RoutedEventArgs e) { if (SelectedStep != null) { IStep step = new IngredientStep { //Boil length minus "last x min" results in when after boil starts we add ingredient LengthMinutes = _profile.BoilTime - Minutes, Title = StepName, Amount = Amount, }; SelectedStep.SubSteps.Add(step); } }
public EVO() { InitializeComponent(); _CRTIngredientInfo = new IngredientInfo(); _IngredientStep = new IngredientStep(); }