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(); } }
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(); } }
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(); } }
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(); } }