Esempio n. 1
0
        private void showResultDisco(ExtendedDiscoResponseMessage disco)
        {
            FIELDS.Clear();
            messageResponseHelper?.Dispose();
            messageResponseHelper = null;

            if (disco != null && disco.roomConfig != null)
            {
                disco.roomConfig.FIELDS.Sort((a, b) => { return(a.type - b.type); });
                foreach (Field f in disco.roomConfig.FIELDS)
                {
                    if (f.type != FieldType.HIDDEN)
                    {
                        FIELDS.Add(new MUCInfoFieldTemplate()
                        {
                            field = f
                        });
                    }
                }
            }

            loading_grid.Visibility = Visibility.Collapsed;
            details_itmc.Visibility = Visibility.Visible;
        }
Esempio n. 2
0
 private bool onMessage(MessageResponseHelper <ExtendedDiscoResponseMessage> helper, ExtendedDiscoResponseMessage msg)
 {
     Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => showResultDisco(msg as ExtendedDiscoResponseMessage)).AsTask();
     return(true);
 }