private void lstBoxMsgs_MouseDoubleClick(object sender, MouseButtonEventArgs e) { int index = lstBoxMsgs.SelectedIndex; if (index != System.Windows.Forms.ListBox.NoMatches) { MessageView view = new MessageView(ReceivedMessages[index], @receiver.GetResultsPath()); view.Show(); } }
public MainWindow() { InitializeComponent(); DataContext = new MessageView(); }