diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-08-20 20:23:23 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-08-20 20:23:23 +0200 |
| commit | 5ded9101522573336813c88d49e2ed27d70429fb (patch) | |
| tree | c1882937d54dab93be02a084b05dfb23cae517a1 /Samples/PathPainter/Program.cs | |
| parent | 36f62cf1ca61cb10c6958787376ae76efb71a1ea (diff) | |
keep only HelloWorld, ShowCase and PerfTests samplesv0.9.5-beta
Diffstat (limited to 'Samples/PathPainter/Program.cs')
| -rw-r--r-- | Samples/PathPainter/Program.cs | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/Samples/PathPainter/Program.cs b/Samples/PathPainter/Program.cs deleted file mode 100644 index 257817ea..00000000 --- a/Samples/PathPainter/Program.cs +++ /dev/null @@ -1,77 +0,0 @@ -using Crow; -using System; -using Samples; - -namespace PathPainter -{ - class Program : SampleBase - { - static void Main (string[] args) { - using (Program app = new Program ()) - app.Run (); - } - - protected override void OnInitialized () { - base.OnInitialized (); - Load ("#ui.main.crow").DataSource = this; - } - string currentPath = "M 5.5,0.5 L 10.5,10.5 L 0.5,10.5 Z F"; - int currentSize = 11; - double zoom = 1.0; - double strokeWidth = 1.0; - Color foreground = Colors.Black; - Color background = Colors.White; - - public Measure DesignSize => (int)(zoom * currentSize); - - public double StrokeWidth { - get => strokeWidth; - set { - if (strokeWidth == value) - return; - strokeWidth = value; - NotifyValueChanged (strokeWidth); - } - } - public string CurrentPath { - get => currentPath; - set { - if (currentPath == value) - return; - currentPath = value; - NotifyValueChanged (currentPath); - } - } - public Size Size => new Size (currentSize); - public int CurrentSize { - get => currentSize; - set { - if (currentSize == value) - return; - currentSize = value; - NotifyValueChanged (currentSize); - NotifyValueChanged ("Size", (object)new Size (currentSize)); - NotifyValueChanged ("CurrentPath", (object)CurrentPath); - } - } - public Color Foreground { - get => foreground; - set { - if (foreground == value) - return; - foreground = value; - NotifyValueChanged (foreground); - } - } - public Color Background { - get => background; - set { - if (background == value) - return; - background = value; - NotifyValueChanged (background); - } - } - - } -} |