Sandkassa2: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
   hei = 'ok'
   hei = 'ok'
</syntaxhighlight>
</syntaxhighlight>
Tester template:{{Note|Teste dette}}
Tester template:
{{Note|Rules by default apply to all tracks and shapes/objects in the service. Take care to define filters that only include the desired combination of tracks and shapes.}}


=== Her prøver vi noe annet. ===
=== Her prøver vi noe annet. ===

Revision as of 13:44, 4 August 2022

Tester syntaxhighlight....

from osgeo import gdal

def start():
  hei = 'ok'

Tester template:

Rules by default apply to all tracks and shapes/objects in the service. Take care to define filters that only include the desired combination of tracks and shapes.

Her prøver vi noe annet.

using System;
using System.Globalization;
using System.Windows.Data;
using TPG.GDK.Windows.Common;

namespace MariaGDKTester
{
    public class ColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var cColor = (TPG.GDK.CommonCore.Primitives.Color)value;
            return Utils.ToWinColor(cColor);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var wColor = (System.Windows.Media.Color)value;
            return Utils.FromWinColor(wColor);
        }
    }
}

Tabell-test

Denne tabellen
H1 H2 H3 HX
v
v
v