fix cast when sending messages from grid
This commit is contained in:
parent
c650c78d90
commit
0e43233edc
@ -22,6 +22,7 @@ using System.Diagnostics;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using static bsmd.database.Message;
|
using static bsmd.database.Message;
|
||||||
using PdfSharp.Fonts;
|
using PdfSharp.Fonts;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace ENI2.DetailViewControls
|
namespace ENI2.DetailViewControls
|
||||||
{
|
{
|
||||||
@ -433,11 +434,11 @@ namespace ENI2.DetailViewControls
|
|||||||
MessageBoxResult result = MessageBox.Show(Properties.Resources.textConfirmSend, Properties.Resources.textConfirm, MessageBoxButton.YesNo, MessageBoxImage.Question);
|
MessageBoxResult result = MessageBox.Show(Properties.Resources.textConfirmSend, Properties.Resources.textConfirm, MessageBoxButton.YesNo, MessageBoxImage.Question);
|
||||||
if (result == MessageBoxResult.Yes)
|
if (result == MessageBoxResult.Yes)
|
||||||
{
|
{
|
||||||
this.SendMessages((IList<Message>)this.dataGridMessages.SelectedItems);
|
this.SendMessages(this.dataGridMessages.SelectedItems.Cast<Message>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendMessages(IList<Message> messages)
|
private void SendMessages(IEnumerable<Message> messages)
|
||||||
{
|
{
|
||||||
bool somethingsNotSaved = false;
|
bool somethingsNotSaved = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user