首次上传
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.Windows.Controls;
|
||||
using AlarmInfoUi = Aitex.Core.UI.View.Common.AlarmItem;
|
||||
|
||||
|
||||
namespace SicUI.Models.PMs
|
||||
{
|
||||
/// <summary>
|
||||
/// PMOperationView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PMAlarmView : UserControl
|
||||
{
|
||||
public PMAlarmView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void listView1_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (e.AddedItems.Count == 1)
|
||||
{
|
||||
var item = e.AddedItems[0] as AlarmInfoUi;
|
||||
AnalysisText.Text = string.Format("Event Type:{0}\r\n\r\nEvent Name:{1}\r\n\r\nEvent Number:{2}\r\n\r\nTime:{3}\r\n\r\nDescription:{4}\r\n\r\nSolution:{5}",
|
||||
item.Level,
|
||||
item.EventEnum,
|
||||
item.EventId,
|
||||
item.OccuringTime,
|
||||
item.Description,
|
||||
item.Solution);
|
||||
}
|
||||
else
|
||||
{
|
||||
AnalysisText.Text = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user