private void selfprofile_button_Click(object sender, EventArgs e) { LoadingDialog Loading = new LoadingDialog(); Loading.Show(); Application.DoEvents(); Userprofile profile = new Userprofile(); profile.Show(); Loading.Close(); }
private void SomeoneProfile_Button_Click(object sender, EventArgs e) { LoadingDialog Loading = new LoadingDialog(); Loading.Show(); Application.DoEvents(); Userprofile profile = new Userprofile(); profile.Target_id = long.Parse(SomeoneProfile_id.Text); profile.Show(); Loading.Close(); }