Пример #1
0
        private void gridServices_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            //Only Jordan should be able to edit services.
            if (!Security.IsAuthorized(Permissions.SecurityAdmin, true))
            {
                return;
            }
            ResellerService         resellerService = ListServices[gridServices.GetSelectedIndex()];
            FormResellerServiceEdit FormRSE         = new FormResellerServiceEdit(resellerService);

            FormRSE.ShowDialog();
            if (FormRSE.DialogResult == DialogResult.OK)
            {
                FillGridMain();
                FillGridServices();
            }
        }
Пример #2
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            //Only Jordan should be able to add services.
            if (!Security.IsAuthorized(Permissions.SecurityAdmin))
            {
                return;
            }
            ResellerService resellerService = new ResellerService();

            resellerService.ResellerNum = ResellerCur.ResellerNum;
            FormResellerServiceEdit FormRSE = new FormResellerServiceEdit(resellerService);

            FormRSE.IsNew = true;
            FormRSE.ShowDialog();
            if (FormRSE.DialogResult == DialogResult.OK)
            {
                FillGridServices();
            }
        }
Пример #3
0
		private void gridServices_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			//Only Jordan should be able to edit services.
			if(!Security.IsAuthorized(Permissions.SecurityAdmin,true)) {
				return;
			}
			ResellerService resellerService=ListServices[gridServices.GetSelectedIndex()];
			FormResellerServiceEdit FormRSE=new FormResellerServiceEdit(resellerService);
			FormRSE.ShowDialog();
			if(FormRSE.DialogResult==DialogResult.OK) {
				FillGridMain();
				FillGridServices();
			}
		}
Пример #4
0
		private void butAdd_Click(object sender,EventArgs e) {
			//Only Jordan should be able to add services.
			if(!Security.IsAuthorized(Permissions.SecurityAdmin)) {
				return;
			}
			ResellerService resellerService=new ResellerService();
			resellerService.ResellerNum=ResellerCur.ResellerNum;
			FormResellerServiceEdit FormRSE=new FormResellerServiceEdit(resellerService);
			FormRSE.IsNew=true;
			FormRSE.ShowDialog();
			if(FormRSE.DialogResult==DialogResult.OK) {
				FillGridServices();
			}
		}