コード例 #1
0
 private void AccountSelectionControl_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args)
 {
     VIEW_MODEL.MODEL.Client = args.CLIENT;
 }
コード例 #2
0
 private void AccountSelectionControl_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args)
 {
     if (args.CLIENT != null)
     {
         nick_tbx.Text = args.CLIENT.getXMPPAccount().user.userId;
     }
     else
     {
         nick_tbx.Text = "";
     }
 }
コード例 #3
0
        private void AccountSelectionControl_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args)
        {
            if (args.CLIENT != null)
            {
                if (!args.CLIENT.isConnected())
                {
                    presence_cbx.IsEnabled = false;
                    save_btn.IsEnabled     = false;
                    return;
                }
                presence_cbx.IsEnabled = true;

                Presence accountPresence = args.CLIENT.getXMPPAccount().presence;
                for (int i = 0; i < presence_cbx.Items.Count; i++)
                {
                    if (presence_cbx.Items[i] is PresenceTemplate)
                    {
                        if ((presence_cbx.Items[i] as PresenceTemplate).presence == accountPresence)
                        {
                            presence_cbx.SelectedIndex = i;
                            break;
                        }
                    }
                }
                status_tbx.Text = args.CLIENT.getXMPPAccount().status ?? "";
            }
            else
            {
                presence_cbx.IsEnabled = false;
                save_btn.IsEnabled     = false;
            }
        }
コード例 #4
0
 private void account_asc_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args)
 {
     reload(args.CLIENT);
 }