static void Main(string[] args) { DashBord db = new DashBord(); db.Name = "速度仪表盘"; db.Reset(); db.Rotate(10.0); db.ShowValue(); db.Save(); Console.WriteLine(); Console.ReadKey(); }
public bool Store(DashBord db) { db.GetValue(); Console.WriteLine("值{0}存储数据库成功", db.GetValue()); return(true); }