Răsfoiți Sursa

不再使用get;private set;这种形式设置属性

tanghai 14 ani în urmă
părinte
comite
8fa5b62d3a
3 a modificat fișierele cu 11 adăugiri și 16 ștergeri
  1. 10 3
      CSharp/Editor/Model/Main.cs
  2. 1 13
      CSharp/Editor/View/MainView.xaml.cs
  3. BIN
      Doc/Dota英雄AI.vsd

+ 10 - 3
CSharp/Editor/Model/Main.cs

@@ -7,14 +7,21 @@ namespace Egametang
 {
 	public class Main
 	{
+		private string loginResult = "";
+
 		public Main()
 		{
-			LoginResult = "";
 		}
 		public string LoginResult
 		{
-			get;
-			set;
+			get
+			{
+				return loginResult;
+			}
+			set
+			{
+				loginResult = value;
+			}
 		}
 	}
 }

+ 1 - 13
CSharp/Editor/View/MainView.xaml.cs

@@ -1,16 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
+using System.Windows.Controls;
 
 namespace Egametang
 {

BIN
Doc/Dota英雄AI.vsd