public AddNotationViewModel(INavigation navigation) { Title = "Add notation"; Notation = new Notations(); SaveNotationCommand = new Command(async() => await SaveNotation()); foreach (NotationType type in Enum.GetValues(typeof(NotationType))) { NotationTypes.Add(type); } _navigation = navigation; }
public void SetHexString(String pattern, bool not = false) { pattern = pattern.Replace(" ", ""); Pattern = new ValueOrNot <string>(pattern, not); Notation = NotationTypes.Hex; }