using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Tango.MachineStudio.Logging.Views
{
/// <summary>
/// Interaction logic for EventsView.xaml
/// </summary>
public partial class ApplicationLogsView : UserControl
{
public ApplicationLogsView()
{
InitializeComponent();
}
private void DataGrid_Selected(object sender, RoutedEventArgs e)
{
}
private void grid_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e)
{
grid.SelectedIndex = -1;
}
}
}
t;/UserControl.Resources>
<Grid>
<TextBlock Margin="80 50" FontSize="16">
<Run FontSize="20">Machine Studio logs information from multiple source.</Run>
<LineBreak/>
<LineBreak/>
<LineBreak/>
<Run FontWeight="SemiBold">• Machine Events</Run> <Run>are predefined events that occurs only when a set of predefined actions have occurred (e.g 'Job executed', 'Thread Break').</Run>
<LineBreak/>
<LineBreak/>
<Run FontWeight="SemiBold">• Application Logs</Run> <Run>are the standard machine studio logs which can be used to trace issues in code.</Run>
<LineBreak/>
<LineBreak/>
<Run FontWeight="SemiBold">• Embedded Logs</Run> <Run>are logs transmitted from the machine's embedded device software.</Run>
</TextBlock>
<UniformGrid Columns="3" Rows="1" VerticalAlignment="Center" Margin="50 150 50 0">
<Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="EventsView">
<Border Style="{StaticResource LogBorder}">
<DockPanel>
<TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">MACHINE EVENTS</TextBlock>
<Image Source="../Images/events.png"></Image>
</DockPanel>
</Border>
</Button>
<Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="ApplicationLogsView">
<Border Style="{StaticResource LogBorder}">
<DockPanel>
<TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">APPLICATION LOGS</TextBlock>
<Image Source="../Images/application-logs.png"></Image>
</DockPanel>
</Border>
</Button>
<Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="EmbeddedLogsView">
<Border Style="{StaticResource LogBorder}">
<DockPanel>
<TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">EMBEDDED LOGS</TextBlock>
<Image Source="../Images/embedded-logs.png"></Image>
</DockPanel>
</Border>
</Button>
</UniformGrid>
</Grid>
</UserControl>