<?xml version="1.0"?>
-<VerticalStack Margin="50" Spacing="20">
- <HorizontalStack Height="Fit">
- <Label Text="Hover:" Width="50" Foreground="Grey"/>
- <Label Text="{HoverWidget}" Font="mono, 8"/>
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Text="Focus:" Width="50" Foreground="Grey"/>
- <Label Text="{FocusedWidget}" Font="mono, 8"/>
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Text="Active:" Width="50" Foreground="Grey"/>
- <Label Text="{ActiveWidget}" Font="mono, 8"/>
- </HorizontalStack>
- <Border Height="Fit" Margin="2" Background="Blue" ContextCommands="{CMDTest}" Focusable="true"
- MouseEnter="{Background=Red}"
- MouseLeave="{Background=Blue}">
- <Label Margin="5" Text="Hello World" />
- </Border>
- <Border Height="Fit" Margin="2" Background="Blue" ContextCommands="{CMDTest}" Focusable="true"
- MouseEnter="{Background=Red}"
- MouseLeave="{Background=Blue}">
- <Label Margin="5" Text="Hello World" />
- </Border>
- <Border Height="Fit" Margin="2" Background="Blue" ContextCommands="{CMDTest}" Focusable="true"
- MouseEnter="{Background=Red}"
- MouseLeave="{Background=Blue}">
- <Label Margin="5" Text="Hello World" />
- </Border>
- <Border Height="Fit" Margin="2" Background="Blue" ContextCommands="{CMDTest}" Focusable="true"
- MouseEnter="{Background=Red}"
- MouseLeave="{Background=Blue}">
- <Label Margin="5" Text="Hello World" />
- </Border>
- <Border Height="Fit" Margin="2" Background="Blue" ContextCommands="{CMDTest}" Focusable="true"
- MouseEnter="{Background=Red}"
- MouseLeave="{Background=Blue}">
- <Label Margin="5" Text="Hello World" />
- </Border>
-</VerticalStack>
+<Label Text="Hello World"/>
break;
case "--help":
default:
- throw new Exception ();
+ throw new Exception ("none");
}
}
- if (EndStage < StartStage) {
- Console.WriteLine ($"Ending stage (){EndStage} is before Starting stage ({StartStage})");
- throw new Exception ();
- }
+ if (EndStage < StartStage)
+ throw new Exception ($"Ending stage (){EndStage} is before Starting stage ({StartStage})");
- } catch (Exception) {
+ } catch (Exception e) {
printHelp ();
- throw;
+ throw e;
}
if (string.IsNullOrEmpty (outDir)) {
iface.PerformTests ();
}
} catch (Exception e) {
- Console.ForegroundColor = ConsoleColor.DarkRed;
- Console.WriteLine (e);
- Console.ResetColor ();
+ if (e.Message != "none") {
+ Console.ForegroundColor = ConsoleColor.DarkRed;
+ Console.WriteLine (e);
+ Console.ResetColor ();
+ }
}
}
}