System.Windows.Threading.DispatcherTimer timer;//动态显示当前时间 public ParkForm() { InitializeComponent(); upc = new UserParkingControl();//实例化车牌数据库函数 ptc = new ParkTicketControl(); ch = new BLL.CamearHelper(); Model.DicValue.TicketTypeList = new System.Collections.Generic.List <System.Collections.Generic.Dictionary <string, int> >(); ch.getsystempath();//获得根目录 Window w = new Window(); startcamera(w); CallbackFuntion(); GetMangerInfo(); w.Close(); }
private void ChargeRelease_Click(object sender, RoutedEventArgs e) { UserParkingControl upc = new UserParkingControl(); if (Model.DicValue.PayParkingID != 0) { int res = upc.UserFinishPay(Model.DicValue.PayParkingID); if (res > 0) { System.Windows.MessageBox.Show("支付成功!"); } else { System.Windows.MessageBox.Show("支付失败!"); } } }