Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void SetHexString(String pattern, bool not = false)
 {
     pattern  = pattern.Replace(" ", "");
     Pattern  = new ValueOrNot <string>(pattern, not);
     Notation = NotationTypes.Hex;
 }