Exemple #1
0
        public Header()
        {
            InitializeComponent();

            if (this.NotInDesignMode())
            {
                _apiSettings = DIService.GetSingleton<ApiSettings>();
                _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>();
                _userInfoRepo = DIService.GetSingleton<UserInfoRepo>();
                _avatarRepo = DIService.GetSingleton<AvatarRepo>();
                _dialogMessagesRepo = DIService.GetSingleton<DialogMessagesRepo>();

                UpdateHeaderInfo();
            }
        }
 public UserInfoService()
 {
     _apiSettings = DIService.GetSingleton<ApiSettings>();
     _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>();
     _userInfoRepo = DIService.GetSingleton<UserInfoRepo>();
 }
 public FriendsService()
 {
     _apiSettings = DIService.GetSingleton<ApiSettings>();
     _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>();
     _friendsRepo = DIService.GetSingleton<FriendsRepo>();
 }
 public DialogMessagesService()
 {
     _apiSettings = DIService.GetSingleton<ApiSettings>();
     _sessionInfoRepo = DIService.GetSingleton<SessionInfoRepo>();
     _dialogMessagesRepo = DIService.GetSingleton<DialogMessagesRepo>();
 }