public AlbumPhotosForm(Album i_Album, User i_LoggedInUser)
 {
     m_LoggedInUser = InputGuard.CheckNullArgument(i_LoggedInUser, nameof(i_LoggedInUser));
     m_Album        = InputGuard.CheckNullArgument(i_Album, nameof(i_Album));
     this.Text      = m_Album.Name;
     InitializeComponent();
     CenterToScreen();
 }
示例#2
0
        public ImageForm(Photo i_Photo, User i_LoggedInUser)
        {
            m_Photo        = InputGuard.CheckNullArgument(i_Photo, nameof(i_Photo));
            m_LoggedInUser = InputGuard.CheckNullArgument(i_LoggedInUser, nameof(i_LoggedInUser));
            m_LikeHandler  = new LikeHandler();
            m_IsImageLiked = false;

            InitializeComponent();
            CenterToScreen();
        }
示例#3
0
        public ApplicationForm(LoginResultData i_LoginResultData, AppSettings i_AppSettings)
        {
            m_LoggedInUser    = InputGuard.CheckNullArgument(i_LoginResultData, nameof(i_LoginResultData)).User;
            m_AppSettings     = InputGuard.CheckNullArgument(i_AppSettings, nameof(i_AppSettings));
            m_SettingsHandler = AppXmlSettingsHandler.Instance;
            m_LastAccessToken = i_LoginResultData.AccessToken;
            m_AlbumsUser      = m_LoggedInUser;
            m_UserMatcher     = new UserMatcher();

            InitializeComponent();
            CenterToScreen();
            setFormViewBySettings();
        }
示例#4
0
        public ApplicationManager(ILoginClient i_LoginClient)
        {
            m_loginClient = InputGuard.CheckNullArgument(i_LoginClient, nameof(i_LoginClient));
            m_ExitSignal  = false;

            try
            {
                m_AppSettings = AppXmlSettingsHandler.Instance.LoadSettingsFromFile();
            }
            catch
            {
                useDefaultSettings();
            }
        }
示例#5
0
 public LoginForm(ILoginClient i_LoginClient)
 {
     r_LoginClient = InputGuard.CheckNullArgument(i_LoginClient, nameof(i_LoginClient));
     InitializeComponent();
     CenterToScreen();
 }
示例#6
0
 public BestFriendForm(User i_BestFriend)
 {
     m_BestFriend = InputGuard.CheckNullArgument(i_BestFriend, nameof(i_BestFriend));
     InitializeComponent();
     CenterToScreen();
 }