Exemplo n.º 1
0
        public async Task <ActionResult <ReferralPrintRequestResponse> > ReprintSupport(string fileId, string supportId, SupportReprintReason reprintReason)
        {
            var result = await messagingClient.Send(new ReprintSupportCommand
            {
                FileId           = fileId,
                SupportId        = supportId,
                ReprintReason    = EnumDescriptionHelper.GetEnumDescription(reprintReason),
                RequestingUserId = currentUserId
            });

            return(Ok(new ReferralPrintRequestResponse {
                PrintRequestId = result
            }));
        }
Exemplo n.º 2
0
        public void ChangeFormLanguage(Localizations newLocalization)
        {
            LanguageSettings LS = new LanguageSettings();

            LS.SetCulture(newLocalization);
            var resources = new ComponentResourceManager(typeof(Main));

            CultureInfo newCultureInfo = new CultureInfo(EnumDescriptionHelper.GetEnumDescription(newLocalization));

            foreach (Control c in this.Controls)
            {
                resources.ApplyResources(c, c.Name, newCultureInfo);
            }

            resources.ApplyResources(this, "$this", newCultureInfo);
        }