示例#1
0
 //--------------------------------------------------------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();
 }
示例#2
0
 //--------------------------------------------------------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();
 }
示例#3
0
        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);
            }
        }