コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Anovi-Soft/KGG
 private Polygon GetPolygon(List<Vector2> points, KggCanvas.Color color = null)
 {
     return new Polygon(points
         .Select(x => new Vector2Ext(kggCanvas.Width / 2 + x.X * size, kggCanvas.Height / 2 - x.Y * size) )
         .ToList()
         ,color);
 }
コード例 #2
0
ファイル: MainWindow.g.cs プロジェクト: Anovi-Soft/KGG
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.kggCanvas = ((KGG.KggCanvas)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #3
0
ファイル: MainWindow.g.i.cs プロジェクト: Anovi-Soft/KGG
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((KGG_Task_1.MainWindow)(target));
     return;
     case 2:
     this.kggCanvas = ((KGG.KggCanvas)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.kggCanvas_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.kggCanvas_MouseMove);
     
     #line default
     #line hidden
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.kggCanvas_MouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 3:
     this.textBoxLeft = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.textBoxRight = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #4
0
ファイル: MainWindow.g.i.cs プロジェクト: Anovi-Soft/KGG
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.kggCanvas = ((KGG.KggCanvas)(target));
     return;
     case 2:
     this.triLevel = ((System.Windows.Controls.TextBox)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.triLevel.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxUInt);
     
     #line default
     #line hidden
     return;
     case 3:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cubeFrom = ((System.Windows.Controls.TextBox)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.cubeFrom.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cubeTo = ((System.Windows.Controls.TextBox)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this.cubeTo.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 6:
     this.pyrA = ((System.Windows.Controls.TextBox)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.pyrA.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 7:
     this.pyrB = ((System.Windows.Controls.TextBox)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.pyrB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 8:
     this.pyrC = ((System.Windows.Controls.TextBox)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.pyrC.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 9:
     this.pyrD = ((System.Windows.Controls.TextBox)(target));
     
     #line 31 "..\..\MainWindow.xaml"
     this.pyrD.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     case 10:
     this.pyrUp = ((System.Windows.Controls.TextBox)(target));
     
     #line 33 "..\..\MainWindow.xaml"
     this.pyrUp.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxVector3);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #5
0
ファイル: MainWindow.g.cs プロジェクト: Anovi-Soft/KGG
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.kggCanvas = ((KGG.KggCanvas)(target));
     return;
     case 2:
     this.labelA = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.textBoxA = ((System.Windows.Controls.TextBox)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.textBoxA.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextChanged);
     
     #line default
     #line hidden
     
     #line 13 "..\..\MainWindow.xaml"
     this.textBoxA.LostFocus += new System.Windows.RoutedEventHandler(this.LostFocus);
     
     #line default
     #line hidden
     return;
     case 4:
     this.labelB = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.textBoxB = ((System.Windows.Controls.TextBox)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.textBoxB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextChanged);
     
     #line default
     #line hidden
     
     #line 15 "..\..\MainWindow.xaml"
     this.textBoxB.LostFocus += new System.Windows.RoutedEventHandler(this.LostFocus);
     
     #line default
     #line hidden
     return;
     case 6:
     this.labelC = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.textBoxC = ((System.Windows.Controls.TextBox)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.textBoxC.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextChanged);
     
     #line default
     #line hidden
     
     #line 17 "..\..\MainWindow.xaml"
     this.textBoxC.LostFocus += new System.Windows.RoutedEventHandler(this.LostFocus);
     
     #line default
     #line hidden
     return;
     case 8:
     this.labelD = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.textBoxD = ((System.Windows.Controls.TextBox)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.textBoxD.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextChanged);
     
     #line default
     #line hidden
     
     #line 19 "..\..\MainWindow.xaml"
     this.textBoxD.LostFocus += new System.Windows.RoutedEventHandler(this.LostFocus);
     
     #line default
     #line hidden
     return;
     case 10:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #6
0
ファイル: Rectangle.cs プロジェクト: Anovi-Soft/KGG
 public Rectangle(Vector3 a, Vector3 b, Vector3 c, Vector3 d, KggCanvas.Color color)
     : this(a, b, c, d)
 {
     Color = color;
 }
コード例 #7
0
ファイル: MainWindow.g.cs プロジェクト: Anovi-Soft/KGG
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((KGG_Task_1.MainWindow)(target));
     return;
     case 2:
     this.kggCanvas = ((KGG.KggCanvas)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.kggCanvas_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.kggCanvas_MouseMove);
     
     #line default
     #line hidden
     
     #line 11 "..\..\MainWindow.xaml"
     this.kggCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.kggCanvas_MouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 3:
     this.slider = ((System.Windows.Controls.Slider)(target));
     
     #line 12 "..\..\MainWindow.xaml"
     this.slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }