Ejemplo n.º 1
0
 private void comisionesDeServiciosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         ServicesManagementForm frmServicesManagement = new ServicesManagementForm();
         frmServicesManagement.Show();
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Ejemplo n.º 2
0
        public ServicesManagementFormController(ServicesManagementForm frmServicesManagement)
            : base(frmServicesManagement)
        {
            this.frmServicesManagement = frmServicesManagement;

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                this.srvService = SamsaraAppContext.Resolve <IServiceService>();
            }

            if (!this.HasPermission(ServicesManagementFormUserPermissionEnum.CanOpenForm))
            {
                MessageBox.Show("No cuenta con acceso a esta ventana.",
                                "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Information);

                this.ReadOnlySearchFields(true);
            }
        }