public frmBiddingTimeSettings()
 {
     InitializeComponent();
     objMaster = new SysPolicyBO();
     this.SetProperties((INavigation)objMaster);
     this.Load           += new EventHandler(frmBiddingTimeSettings_Load);
     this.btnSave.Click  += new EventHandler(btnSave_Click);
     this.btnExit1.Click += new EventHandler(btnExit1_Click);
 }
示例#2
0
 public frmFareMeterSetting()
 {
     InitializeComponent();
     objMaster = new SysPolicyBO();
     this.SetProperties((INavigation)objMaster);
     MeterTypes();
     FormatGrid();
     this.Load += new EventHandler(frmFareMeterSetting_Load);
     this.ddlFareMeterType.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(ddlFareMeterType_SelectedIndexChanged);
 }
        public frmSinBinSettings()
        {
            InitializeComponent();

            objMaster = new SysPolicyBO();
            this.SetProperties((INavigation)objMaster);
            objMaster.GetByPrimaryKey(1);
            FormatGrid();
            this.Load       += new EventHandler(frmBookingTypes_Load);
            this.FormClosed += new FormClosedEventHandler(frmBookingTypes_FormClosed);
        }
        public frmSurchargeRateSettings()
        {
            InitializeComponent();

            objMaster = new SysPolicyBO();

            this.SetProperties((INavigation)objMaster);


            Gen_SysPolicy obj = General.GetQueryable <Gen_SysPolicy>(null).FirstOrDefault();

            if (obj != null)
            {
                objMaster.GetByPrimaryKey(obj.Id);
                objMaster.Edit();
            }
            this.Load           += FrmSurchargeRateSettings_Load;
            this.btnSave.Click  += BtnSave_Click;
            this.btnExit1.Click += BtnExit1_Click;
        }
示例#5
0
        private void InitializeConstructor()
        {
            objMaster = new SysPolicyBO();

            this.SetProperties((INavigation)objMaster);

            grdSMSTemplets.CellDoubleClick += new GridViewCellEventHandler(grdSMSTemplets_CellDoubleClick);


            EditFare = new RadDropDownMenu();

            EditFare.BackColor = Color.Orange;


            RadMenuItem EditFareItem1 = new RadMenuItem("Delete");  // 0 index

            EditFareItem1.ForeColor = Color.Red;
            EditFareItem1.Font      = new Font("Tahoma", 10, FontStyle.Bold);
            EditFareItem1.Click    += new EventHandler(btnDelete_Click);
            EditFare.Items.Add(EditFareItem1);

            grdSMSTemplets.ContextMenuOpening += new ContextMenuOpeningEventHandler(grdSMSTemplets_ContextMenuOpening);
            grdSMSTemplets.RowsChanging       += new GridViewCollectionChangingEventHandler(grdSMSTemplets_RowsChanging);
        }
        private void InitializeConstructor()
        {
            objMaster = new SysPolicyBO();

            this.SetProperties((INavigation)objMaster);
        }