Exemplo n.º 1
0
 public static YTForm GetInstance(int profileId, Form chatForm)
 {
     if (instance == null)
     {
         instance = new YTForm(profileId, chatForm);
     }
     return(instance);
 }
Exemplo n.º 2
0
 private void YTForm_Closing(object sender, CancelEventArgs e)//on close event
 {
     instance = null;
 }
Exemplo n.º 3
0
 private void YoutubeButton_Click(object sender, EventArgs e)//Goes to Youtube View
 {
     YTForm.GetInstance(profileId, this).Show();
 }