public ChatWindow GetChatWindow(Contact contact)
        {
            var chatWindow = WindowsFactory.GetInstance()
                .GetChatWindow(contact, _senderService);

            return chatWindow;
        }
Example #2
0
 private void addBtn_Click(object sender, EventArgs e)
 {
     var newContact = new Contact(name.Text, ipDirection.Text);
     _contactManager.AddContact(newContact);
 }
Example #3
0
 public void AddContact(Contact contact)
 {
     _contacts.Items.Add(contact);
 }
Example #4
0
 public ChatWindow(Contact contact, SenderService senderService)
 {
     InitializeComponent();
     _contact = contact;
     _senderService = senderService;
 }
Example #5
0
 public ChatWindow GetChatWindow(Contact contact, SenderService senderService)
 {
     return new ChatWindow(contact, senderService);
 }