Ejemplo n.º 1
0
        private void btnSetupProfile_Click(object sender, EventArgs e)
        {
            if (lbProfiles.SelectedItem != null)
            {
                wantedProfile = lbProfiles.SelectedItem.ToString();
            }

            this.Visible = false;

            profileSetup = new ProfileSetup(wantedProfile, this);
            profileSetup.Show();
        }
Ejemplo n.º 2
0
        private void btnNewProfile_Click(object sender, EventArgs e)
        {
            profileSetup = new ProfileSetup(string.Empty, this);

            Point NewPoint = new Point();

            NewPoint.X = this.Location.X + this.Size.Width / 2 - profileSetup.Size.Width / 2;
            NewPoint.Y = this.Location.Y + this.Size.Height / 2 - profileSetup.Size.Height / 2;

            profileSetup.Location = NewPoint;

            profileSetup.Show();

            this.Visible = false;
        }
Ejemplo n.º 3
0
        private void btnEditProfile_Click(object sender, EventArgs e)
        {
            if (lbProfiles.SelectedItem != null)
            {
                wantedProfile = lbProfiles.SelectedItem.ToString();
            }

            this.Visible = false;

            profileSetup = new ProfileSetup(wantedProfile, this);

            Point NewPoint = new Point();

            NewPoint.X = this.Location.X + this.Size.Width / 2 - profileSetup.Size.Width / 2;
            NewPoint.Y = this.Location.Y + this.Size.Height / 2 - profileSetup.Size.Height / 2;

            profileSetup.Location = NewPoint;

            profileSetup.Show();
        }