Beispiel #1
0
        public RegionProperty(EngineRegionProfile profile)
        {
            Profile = profile;

            Description = profile.Description;
            SetHasLogin();
        }
Beispiel #2
0
        public EditDialogue(EngineRegionProfile profile, MainWindow parent)
        {
            Profile = profile;

            InitializeComponent();

            Title = "Edit login for " + profile.Description;
            Login login = profile.Login;
            if (login != null)
            {
                UsernameTextBox.Text = login.Username;
                PasswordTextBox.Password = login.Password;
            }

            //Center it
            Left = parent.Left + (parent.Width  - Width) / 2;
            Top = parent.Top + (parent.Height - Height) / 2;

            //Default to false, this way nothing special needs to be done when the user closes the window without using the Ok/Cancel button
            UserProvidedNewLogin = false;
        }
        public EditDialogue(EngineRegionProfile profile, MainWindow parent)
        {
            Profile = profile;

            InitializeComponent();

            Title = "Edit login for " + profile.Description;
            Login login = profile.Login;

            if (login != null)
            {
                UsernameTextBox.Text     = login.Username;
                PasswordTextBox.Password = login.Password;
            }

            //Center it
            Left = parent.Left + (parent.Width - Width) / 2;
            Top  = parent.Top + (parent.Height - Height) / 2;

            //Default to false, this way nothing special needs to be done when the user closes the window without using the Ok/Cancel button
            UserProvidedNewLogin = false;
        }