committed
a9f5ee2
Commits
Comments (0)
Files changed (5)
-
+36 -1M Apps/VisualZomB/App.xaml.cs
-
+60 -39M Apps/VisualZomB/Designer.xaml.cs
-
+18 -0A Apps/VisualZomB/ErrorDialog.xaml
-
+41 -0A Apps/VisualZomB/ErrorDialog.xaml.cs
-
+7 -0M Apps/VisualZomB/VisualZomB.csproj
Apps/VisualZomB/App.xaml.cs Modified
- Ignore whitespace
Apps/VisualZomB/Designer.xaml.cs Modified
- Ignore whitespace
- StoppedDDHCVS cvs = XamlReader.Load(new MemoryStream(UTF8Encoding.UTF8.GetBytes(new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
- "ViZ:StoppedDDHCVS xmlns:ViZ=\"clr-namespace:System451.Communication.Dashboard.ViZ;assembly=ViZ\" ")
+ StoppedDDHCVS cvs = XamlReader.Load(new MemoryStream(UTF8Encoding.UTF8.GetBytes(new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
+ "ViZ:StoppedDDHCVS xmlns:ViZ=\"clr-namespace:System451.Communication.Dashboard.ViZ;assembly=ViZ\" ")
- (designerProps[3] as ComboBox).SelectedIndex = ((int)cvs.InvalidPacketAction) - 1;//this hinges on the values
- ((designerProps[5] as FrameworkElement).Tag as ZomBUrlCollectionDesigner).Set((cvs.DefaultSources));
+ (designerProps[3] as ComboBox).SelectedIndex = ((int)cvs.InvalidPacketAction) - 1;//this hinges on the values
+ ((designerProps[5] as FrameworkElement).Tag as ZomBUrlCollectionDesigner).Set((cvs.DefaultSources));
Apps/VisualZomB/ErrorDialog.xaml Added
- Ignore whitespace
+ Title="Kaboom!" Height="488" Width="691" xmlns:my="clr-namespace:System451.Communication.Dashboard.ViZ" Topmost="True" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True">
+ <StackPanel Grid.Row="2" Name="stackPanel1" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,0,0">
+ <Label Content="A copy of this report has been saved to C:\ZomB.log" Name="label1" VerticalAlignment="Center" HorizontalAlignment="Center" Padding="5,5,10,5" />
+ <Label Content="Ack! ZomB encountered an error. Please let the developers know about this." Name="label2" VerticalAlignment="Top" />
+ <TextBox Grid.Row="1" Name="textBox1" IsReadOnly="True" Text="{Binding Path=Message, RelativeSource={RelativeSource FindAncestor, AncestorType=my:ErrorDialog, AncestorLevel=1}}" Background="LightGray" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" />
Apps/VisualZomB/ErrorDialog.xaml.cs Added
- Ignore whitespace
+ // Using a DependencyProperty as the backing store for Message. This enables animation, styling, binding, etc...
+ DependencyProperty.Register("Message", typeof(string), typeof(ErrorDialog), new UIPropertyMetadata(""));
Apps/VisualZomB/VisualZomB.csproj Modified
- Ignore whitespace