예제 #1
0
        public void LaunchInviteWindow(ControlMessage msg)
        {
            InviteWindow inviteWin = new InviteWindow(msg.Sender, msg.ChatName, msg.Chat, msg.ID);

            this.BeginInvoke((MethodInvoker) delegate() {
                inviteWin.BringToFront();
                inviteWin.Show();
            });
        }
예제 #2
0
        public void CreateNewWindow(InviteViewModel inviteViewModel)
        {
            var window = new InviteWindow
            {
                DataContext = inviteViewModel
            };

            window.ShowDialog();
        }