Пример #1
0
        public void AddUserItems()
        {
            ComponentSelectorDialog dlg = new ComponentSelectorDialog(currentConsumer);

            dlg.Fill();
            MessageService.ShowCustomDialog(dlg);
        }
Пример #2
0
        public async Task AddUserItems()
        {
            using (ComponentSelectorDialog dlg = new ComponentSelectorDialog()) {
                bool initialized = await dlg.Initialize(currentConsumer);

                if (!initialized)
                {
                    return;
                }

                dlg.Fill();
                MessageService.ShowCustomDialog(dlg);
            }
        }