public MainWindow()
 {
     InitializeComponent();
     BieuThucChinh = new TinhBieuThuc();
     SoHang = "";
     bieuThuc = BieuThucChinh.BieuThuc;
     BieuThucChinh.MoiTruong = "Degrees";
     Fix = 10;
     BieuThucChinh.Base = "Decimal";
     shift = false;
     lamMoiTrangThai();
     back = @"backGround3.png";
     isClose = true;
     backGround = new Thread(autoChangeBackground);
     backGround.SetApartmentState(ApartmentState.STA);
     BieuThucChinh.PhepTinh.ans = 0;
     BieuThucChinh.PhepTinh.M = 0;
     //backGround.Start();
     his = new DataBaseHistory();
 }
 public WindowHistory()
 {
     InitializeComponent();
     his = new DataBaseHistory();
     listView.ItemsSource = his.showHistory();
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.WindowHistory = ((MayTinh.DataBaseHistory)(target));
     return;
     case 2:
     this.listBox = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }