Esempio n. 1
0
 public void ClosePrivateChatFormn(PrivateChatForm privateChatForm)
 {
     privateChatForm.Invoke((MethodInvoker) delegate
     {
         privateChatForm.Close();
     });
 }
Esempio n. 2
0
        public PrivateChatForm CreatePrivateChatForm(Client client, string interlocutor)
        {
            var privateChatForm = new PrivateChatForm(client, interlocutor);

            new Thread(() => { ShowPrivateChatForm(privateChatForm); }).Start();
            return(privateChatForm);
        }
Esempio n. 3
0
 private void ShowPrivateChatForm(PrivateChatForm privateChatForm)
 {
     privateChatForm.ShowDialog();
 }