You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ShopNCook/Views/Components/StepEntry.xaml.cs

26 lines
436 B

using Models;
namespace ShoopNCook.Views;
public partial class StepEntry : ContentView
{
public StepEntry(): this(1)
{}
public StepEntry(uint ordinal)
{
InitializeComponent();
Ordinal = ordinal;
}
public PreparationStep MakeStep()
{
return new PreparationStep("Step " + Ordinal, StepEditor.Text);
}
public uint Ordinal {
get => uint.Parse(OrdinalLabel.Text);
set => OrdinalLabel.Text = value.ToString();
}
}