public MainContentPresenter(Action closeAction)
        {
            User = App.Client;

            CloseAction = closeAction;

            proccesReceiverInformation.ClientLogin  += OnClientLogin;
            proccesReceiverInformation.ClientLogout += OnClientLogout;
            proccesReceiverInformation.ClientList   += OnClientList;

            //clientReceiveFromServer.ReceiveLogExcep += (s, e) => MessageBox.Show(e.receiveLogExpceMessage, "Gold Chat: " + User.strName, MessageBoxButton.OK, MessageBoxImage.Error);
            //proccesReceiverInformation.SendException += (s, e) => MessageBox.Show(e.sendExcepMessage, "Gold Chat: " + strName, MessageBoxButton.OK, MessageBoxImage.Error);
            //channels
            proccesReceiverInformation.ClientCreateChannel    += OnClientCreateChannel;
            proccesReceiverInformation.ClientDeleteChannel    += OnClientDeleteChannel;
            proccesReceiverInformation.ClientEditChannel      += (s, e) => MessageBox.Show(e.clientChannelMsg, "Gold Chat: " + User.strName, MessageBoxButton.OK, MessageBoxImage.Information);
            proccesReceiverInformation.ClientJoinChannel      += OnClientJoinChannel; // all in new class
            proccesReceiverInformation.ClientExitChannel      += OnClientExitChannel;
            proccesReceiverInformation.ClientListChannel      += OnClientListChannel;
            proccesReceiverInformation.ClientChannelEnter     += OnClientChannelEnter;
            proccesReceiverInformation.ClientChannelEnterDeny += (s, e) => MessageBox.Show(e.clientChannelMsg, "Gold Chat: " + User.strName, MessageBoxButton.OK, MessageBoxImage.Information);

            proccesReceiverInformation.ClientListChannelJoined += OnClientListChannelJoined;
            //friends
            proccesReceiverInformation.ClientAddFriend         += OnClientAddFriend;
            proccesReceiverInformation.ClientAcceptFriend      += OnClientAcceptFriend;
            proccesReceiverInformation.ClientListFriends       += OnClientListFriends;
            proccesReceiverInformation.ClientDeleteFriend      += OnClientDeleteFriend;
            proccesReceiverInformation.ClientPrivMessage       += OnClientPrivMessage;
            proccesReceiverInformation.ClientDenyFriend        += (s, e) => MessageBox.Show("User: "******" doesnt accept your ask to be your friend", "Gold Chat: " + User.strName, MessageBoxButton.OK, MessageBoxImage.Information);
            proccesReceiverInformation.ClientIgnoreUser        += OnClientIgnoreUser;
            proccesReceiverInformation.ClientDeleteIgnoredUser += OnClientDeleteIgnoredUser;
            proccesReceiverInformation.ClientListIgnored       += OnClientListIgnored;
            //ban/kick
            proccesReceiverInformation.ClientKickFromServer  += OnClientKickFromServer;
            proccesReceiverInformation.ClientBanFromServer   += OnClientBanFromServer;
            proccesReceiverInformation.ClientReceiveFileInfo += OnClientReceiveFileInfo;
            InformServerToSendUserLists informServerToSendUserLists = new InformServerToSendUserLists();

            addTab(new GlobalMessageContent(), "Main");
            SelectedTabControlIndex = 0;
        }
        public MainContentPresenter(Action closeAction)
        {
            User        = App.Client;
            CloseAction = closeAction;

            proccesReceiverInformation.ClientLogin  += OnClientLogin;
            proccesReceiverInformation.ClientLogout += OnClientLogout;
            proccesReceiverInformation.ClientList   += OnClientList;

            proccesReceiverInformation.ClientAddFriend    += OnClientAddFriend;
            proccesReceiverInformation.ClientAcceptFriend += OnClientAcceptFriend;
            proccesReceiverInformation.ClientListFriends  += OnClientListFriends;
            proccesReceiverInformation.ClientDeleteFriend += OnClientDeleteFriend;
            proccesReceiverInformation.ClientPrivMessage  += OnClientPrivMessage;
            proccesReceiverInformation.ClientDenyFriend   += (s, e) => MessageBox.Show("User: "******" doesnt accept your ask to be your friend", "Chat: " + User.strName, MessageBoxButton.OK, MessageBoxImage.Information);

            InformServerToSendUserLists informServerToSendUserLists = new InformServerToSendUserLists();

            addTab(new GlobalMessageContent(), "main");
            SelectedTabControlIndex = 0;
        }