private void button5_Click(object sender, EventArgs e) { string desc; if (string.IsNullOrEmpty(AddDescription.changedDescription)) { desc = Login.description; } else { desc = AddDescription.changedDescription; } ViewProfile open = new ViewProfile(Program.tek, desc); open.Show(); this.Dispose(); }
private void button2_Click(object sender, EventArgs e) { string lp; if (string.IsNullOrEmpty(Program.tek)) { lp = Login.imagePath; } else { lp = Program.tek; } ViewProfile viewProfile = new ViewProfile(lp, changedDescription); viewProfile.Show(); this.Dispose(); }