Ejemplo n.º 1
0
 private void UpdateInfo()
 {
     infoSource          = (InfoSource)App.Current.Resources["infoSource"];
     infoSource.NumPlace = buffer.NumPlace;
     infoSource.Client   = String.Format("{0} {1}", buffer.LastName, buffer.FirstName);
     infoSource.Car      = String.Format("{0} {1}", buffer.Brand, buffer.Color);
     infoSource.Tariff   = String.Format("{0}грн.    Дата Оплаты: {1}    Задолженность: {2}грн.", buffer.RentPrice, buffer.DatePayment, buffer.Debt);
 }
 public DepositWindow()
 {
     InitializeComponent();
     btnCancel.Click += Cancel;
     btnOk.Click     += Ok;
     tbPaySum.KeyUp  += TbPaySum_KeyUp;
     InfoSource       = (InfoSource)App.Current.Resources["infoSource"];
 }
 public PlaceWindow(PlaceWndName name)
 {
     InitializeComponent();
     this.name  = name;
     this.Title = this.Caption;
     InfoSource = (InfoSource)App.Current.Resources["infoSource"];
     this.SetBtnPlaces();
     this.SetBusyPlaces();
     this.SetSelectedPlace();
     this.GetCountPlaces();
     this.IfSelectPlaceWnd();
     InfoSource.NumPlace = null;
     btnCancel.Click    += Cancel;
     btnOk.Click        += Ok;
 }
Ejemplo n.º 4
0
 public FullInfoWindow()
 {
     InitializeComponent();
     btnOk.Click += Cancel;
     InfoSource   = (InfoSource)App.Current.Resources["infoSource"];
 }