Exemplo n.º 1
0
        public mov4eProfileSettings(IProfileScreen _profileSc)
        {
            InitializeComponent();
            this.WindowState = FormWindowState.Maximized;
            _profileScreen   = _profileSc;
            this._imov4EProfileSettingsPresenter  = new SettingsPresenter(_profileScreen);
            textBoxOldPassword.PasswordChar       = '*';
            textBoxNewPassword.PasswordChar       = '*';
            textBoxNewPasswordRepeat.PasswordChar = '*';
            comboBoxGenderChanged.Items.Add("Male");
            comboBoxGenderChanged.Items.Add("Female");

            neonBlue = Color.FromArgb(8, 233, 232);
            white    = Color.White;

            // lists used when changing colors
            labels = new List <Label>()
            {
                labelEmail, labelRepNewPassword, labelUsername, labelFirstName, labelLastName, labelBirthYear, labelGender
            };
            buttons = new List <Button> {
                buttonChangeEmail, buttonChangePassword, buttonChangeUsername, buttonChangeFName,
                buttonChangeLName, buttonChangeBYear, buttonChangeGender
            };
            panels = new List <Panel> {
                panelHrEmail, panelHrPassword, panelHrUsername, panelHrFName,
                panelHrLName, panelHrGender, panelHrBYear
            };

            this.ActiveControl = null;
        }
Exemplo n.º 2
0
 public ProfileScreenPresenter(IProfileScreen newProfileScreen, IProfileScreenService profileScreenService)
 {
     this._profileScreen        = newProfileScreen;
     this._profileScreenService = profileScreenService;
 }
Exemplo n.º 3
0
 public ProfileScreenPresenter(IProfileScreen newProfileScreen)
 {
     this._profileScreen = newProfileScreen;
 }
Exemplo n.º 4
0
 //for tests
 public SettingsPresenter(IProfileScreen _profileS, IProfileScreenSettingsService _profileService)
 {
     _profileScreenService = _profileService;
     _profileScreen        = _profileS;
 }
Exemplo n.º 5
0
 public SettingsPresenter(IProfileScreen _profileS)
 {
     _profileScreenService = new ProfileScreenSettingsService();
     _profileScreen        = _profileS;
 }