mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 07:56:37 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Wpf.Maps
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for GeoMapExample.xaml
|
||||
/// </summary>
|
||||
public partial class GeoMapExample : UserControl
|
||||
{
|
||||
public GeoMapExample()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
var r = new Random();
|
||||
|
||||
Values = new Dictionary<string, double>();
|
||||
|
||||
Values["MX"] = r.Next(0, 100);
|
||||
Values["CA"] = r.Next(0, 100);
|
||||
Values["US"] = r.Next(0, 100);
|
||||
Values["IN"] = r.Next(0, 100);
|
||||
Values["CN"] = r.Next(0, 100);
|
||||
Values["JP"] = r.Next(0, 100);
|
||||
Values["BR"] = r.Next(0, 100);
|
||||
Values["DE"] = r.Next(0, 100);
|
||||
Values["FR"] = r.Next(0, 100);
|
||||
Values["GB"] = r.Next(0, 100);
|
||||
|
||||
LanguagePack = new Dictionary<string, string>();
|
||||
LanguagePack["MX"] = "México"; // change the language if necessary
|
||||
|
||||
DataContext = this;
|
||||
}
|
||||
|
||||
public Dictionary<string, double> Values { get; set; }
|
||||
public Dictionary<string, string> LanguagePack { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user