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; } }
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 = ""; } }
private void AccountSelectionControl_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args) { VIEW_MODEL.MODEL.Client = args.CLIENT; }
private void AccountSelectionControl_AddAccountClick(Controls.AccountSelectionControl sender, System.ComponentModel.CancelEventArgs args) { VIEW_MODEL.OnCancel(); Hide(); }
private void AccountSelectionControl_AddAccountClicked(Controls.AccountSelectionControl sender, Classes.Events.AddAccountClickedEventArgs args) { Hide(); }
private void account_asc_AccountSelectionChanged(Controls.AccountSelectionControl sender, Classes.Events.AccountSelectionChangedEventArgs args) { reload(args.CLIENT); }