コード例 #1
0
        private void WritePermitToXMLAndOpenThankyouForm()
        {
            bool xml = Utilites.WriteParkingPermitToXML(this.m_ParkingPermit);

            this.lblTelephone.Visible = false;
            this.pnlLogin.Visible     = false;
            this.lblStaffCode.Visible = false;
            this.Hide();
            int num = (int)new frmThankYou(this.m_ParkingPermit, this.m_DisplayOption, xml).ShowDialog();

            this.Close();
        }
コード例 #2
0
        private void PaidInFullOpenThankyouForm()
        {
            Utilites.WriteToLog("GetFormPaidInFullSettings entered");
            bool xml = Utilites.WriteParkingPermitToXML(this._parkingPermitInfo);

            this.Hide();
            frmThankYou frmThankYou = new frmThankYou(this._parkingPermitInfo, this.m_DisplayOption, xml, this._cardDeviceResponse);
            int         num         = (int)frmThankYou.ShowDialog();

            frmThankYou.Close();
            frmThankYou.Dispose();
            this.Close();
            Utilites.WriteToLog("GetFormPaidInFullSettings Exited");
        }
コード例 #3
0
        private void GetFormPaidInFullSettings()
        {
            bool xml = Utilites.WriteParkingPermitToXML(this.m_ParkingPermit);

            this.cmdCancel.Visible          = false;
            this.lblStaffMessage.Visible    = false;
            this.categoryCARButton.Visible  = false;
            this.categoryHGVButton.Visible  = false;
            this.categoryHGVFButton.Visible = false;
            this.imgVRM.Visible             = false;
            this.imgOverview.Visible        = false;
            this.Hide();
            new frmThankYou(this.m_ParkingPermit, this.m_DisplayOption, xml).Show();
            this.Close();
        }
コード例 #4
0
 private void cmdEnter_Click(object sender, EventArgs e)
 {
     if (StringTools.IsNumeric(this.txtDays.Text))
     {
         if (Settings.Default.MaxNumberOfDaysToPermitFor >= double.Parse(this.txtDays.Text + ".0"))
         {
             this.m_ParkingPermit.EndDate = this.m_ParkingPermit.StartDate.AddDays(double.Parse(this.txtDays.Text + ".0"));
             bool xml = Utilites.WriteParkingPermitToXML(this.m_ParkingPermit);
             this.Hide();
             new frmThankYou(this.m_ParkingPermit, this.m_DisplayOption, xml).Show();
             this.Close();
         }
         else
         {
             this.lblTooManyDays.Visible = true;
             this.lblError.Visible       = true;
         }
     }
     else
     {
         this.lblError.Visible = true;
     }
 }