//--------------------------------------------------------Constructor:----------------------------------------------------------------\\ #region --Constructors-- /// <summary> /// Basic Constructor /// </summary> /// <history> /// 02/03/2018 Created [Fabian Sauter] /// </history> public MucKickBanOccupantControl(MUCKickBanOccupantDialog dialog, XMPPClient client, ChatTable chat, bool canKick, bool canBan) { KICK_BAN_DIALOG = dialog; CLIENT = client; CHAT = chat; this.canKick = canKick; this.canBan = canBan; InitializeComponent(); }
//--------------------------------------------------------Constructor:----------------------------------------------------------------\\ #region --Constructors-- /// <summary> /// Basic Constructor /// </summary> /// <history> /// 02/03/2018 Created [Fabian Sauter] /// </history> public MucKickBanOccupantControl(MUCKickBanOccupantDialog dialog, XMPPClient client, ChatTable chat, bool canKick, bool canBan) { this.dialog = dialog; this.client = client; this.chat = chat; this.canKick = canKick; this.canBan = canBan; this.InitializeComponent(); }
private async void kickBan_btn_Click(object sender, RoutedEventArgs e) { if (members_dgrid.SelectedItems.Count > 0) { ObservableCollection <MUCOccupantTemplate> collection = new ObservableCollection <MUCOccupantTemplate>(); foreach (object o in members_dgrid.SelectedItems) { if (o is MUCOccupantTemplate) { collection.Add(o as MUCOccupantTemplate); } } MUCKickBanOccupantDialog dialog = new MUCKickBanOccupantDialog(collection, Client, Chat, canKick, canBan); await UiUtils.showDialogAsyncQueue(dialog); } }