Ejemplo n.º 1
0
 public static ProfileForm GetInstance(int profileId)
 {
     if (instance == null)
     {
         return(instance = new ProfileForm(profileId));
     }
     return(null);
 }
Ejemplo n.º 2
0
 private void ViewProfileButton_Click(object sender, EventArgs e)//Goes to profile View
 {
     ProfileForm.GetInstance(profileId).Show();
 }
Ejemplo n.º 3
0
 private void ProfileForm_Closing(object sender, CancelEventArgs e)//on close event
 {
     instance = null;
 }
Ejemplo n.º 4
0
 private void Back_btn_Click(object sender, EventArgs e)
 {
     Close();
     instance = null;
 }