コード例 #1
0
        public void DirectConnectOnEvent(object sender, EventArgs args)
        {
            ChatWindow  chatWindow = new ChatWindow();
            ChatPartner partner    = ((ChatPartnerVM)sender).Partner;
            ChatVM      chatvm     = new ChatVM(partner);

            chatWindow.DataContext = chatvm;
            chatWindow.Show();
        }
コード例 #2
0
        public void DirectConnect()
        {
            ChatWindow  chatWindow = new ChatWindow();
            ChatPartner partner    = new ChatPartner("New_Partner", IPAddress.Parse(this.CurrentIp), Convert.ToInt16(this.CurrentPort));
            ChatVM      chatvm     = new ChatVM(partner);

            chatWindow.DataContext = chatvm;
            chatWindow.Show();
        }