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

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