예제 #1
0
        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);
 }