public ThreadWorks(RegisterThread p_register_thread, IsThereUnauthWorkerThread p_is_there_unauth_worker_thread
                    , RemoveThread p_remove_thread, RemoveAThreadDialogs p_remove_a_thread_dialogs)
 {
     register_thread = p_register_thread;
     is_there_unauth_worker_thread = p_is_there_unauth_worker_thread;
     remove_thread           = p_remove_thread;
     remove_a_thread_dialogs = p_remove_a_thread_dialogs;
 }
 public OfflineUserWorks(ChangeStatusToOffline p_change_status_to_offline, OfflineUser p_offline_user, GetUserPresenceState p_get_user_presence_state
                         , GetOnlineUserThreadID p_get_online_user_thread_id, UserLeaveAllChats p_user_leave_all_chats, RemoveAThreadDialogs p_remove_a_thread_dialog
                         , RemoveAUserDialogs p_remove_a_user_dialog, RemoveThread p_remove_thread)
 {
     change_status_to_offline  = p_change_status_to_offline;
     offline_user              = p_offline_user;
     get_user_presence_state   = p_get_user_presence_state;
     get_online_user_thread_id = p_get_online_user_thread_id;
     user_leave_all_chats      = p_user_leave_all_chats;
     remove_a_thread_dialog    = p_remove_a_thread_dialog;
     remove_a_user_dialog      = p_remove_a_user_dialog;
     remove_thread             = p_remove_thread;
 }
        public UserManager(Dictionary <int, UserData> p_all_users_logged_in, DB_IsThereUserPass p_is_there_user_pass, DB_GetUserFriendsList p_get_user_friend_list
                           , DB_IsThereUser p_is_there_user, RemoveThread p_remove_thread, DB_CreateNewUser p_create_new_user, StartClientFriendChangedStatusInformDialog p_start_client_friend_changed_status_inform_dialog
                           , StartSendToClinetFormalMessage p_start_send_to_client_fromal_message, CreateOfflineMessage p_add_offline_meesge, RegisterThread p_register_a_thread)
        {
            all_users_logged_in = p_all_users_logged_in;

            is_there_user_pass   = p_is_there_user_pass;
            get_user_friend_list = p_get_user_friend_list;
            is_there_user        = p_is_there_user;
            remove_thread        = p_remove_thread;
            create_new_user      = p_create_new_user;
            start_client_friend_changed_status_inform_dialog = p_start_client_friend_changed_status_inform_dialog;
            start_send_to_client_fromal_message = p_start_send_to_client_fromal_message;
            add_offline_meesge = p_add_offline_meesge;
            register_a_thread  = p_register_a_thread;
        }