Example #1
0
        public async Task <uint?> GetUInt(string title, string description)
        {
            var vm = new InputEntryProviderViewModel <uint>(title, description, 0);

            if (await windowManager.Value.ShowDialog(vm))
            {
                return(vm.Entry);
            }
            return(null);
        }
Example #2
0
        public async Task <string?> GetString(string title, string description, string defaultValue = "")
        {
            var vm = new InputEntryProviderViewModel <string>(title, description, defaultValue, s => !string.IsNullOrEmpty(s));

            if (await windowManager.Value.ShowDialog(vm))
            {
                return(vm.Entry);
            }
            return(null);
        }
        public async Task <uint?> GetEntry()
        {
            var vm = new InputEntryProviderViewModel();

            if (await windowManager.Value.ShowDialog(vm))
            {
                return(vm.Entry);
            }
            return(null);
        }