Sandkassa2: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tags: Manual revert Visual edit |
No edit summary |
||
Line 4: | Line 4: | ||
def start(): | def start(): | ||
hei = 'ok' | hei = 'ok' | ||
</syntaxhighlight><syntaxhighlight lang="c#" line="1"> | </syntaxhighlight> | ||
=== Her prøver vi noe annet. === | |||
<syntaxhighlight lang="c#" line="1"> | |||
using System; | using System; | ||
using System.Globalization; | using System.Globalization; |
Revision as of 10:15, 4 August 2022
Tester syntaxhighlight....
from osgeo import gdal
def start():
hei = 'ok'
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);
}
}
}