public static LocalText ToLocalText(string caption) { LocalText lt = null; if (!caption.IsNullOrEmpty()) lt = new LocalText(caption); return lt; }
IEnumerator blinkForSecs(float seconds, LocalText target) { interactable = false; float elapsed = 0; while (elapsed < seconds) { yield return new WaitForSeconds(0.4f); elapsed += Time.deltaTime + 0.4f; target.gameObject.SetActive(!target.gameObject.activeInHierarchy); } target.gameObject.SetActive(false); interactable = true; }
protected Field(ICollection<Field> fields, FieldType type, string name, LocalText caption, int size, FieldFlags flags) { this.name = name; expression = "T0." + SqlSyntax.AutoBracket(name); this.size = size; this.flags = flags; this.type = type; index = -1; minSelectLevel = SelectLevel.Default; naturalOrder = 0; this.caption = caption; if (fields != null) fields.Add(this); }
IEnumerator LoadMusic(XElement node, LocalText text) { AudioClip clip = null; foreach (XElement element in node.Elements()) { string clipName = element.Name.ToString() + "_" + node.Attribute("name").Value; string path = Application.dataPath + "/Resources/Sound/Voice/" + clipName + ".wav"; if (File.Exists(path)) { WWW www = new WWW("file://" + path); while (!www.isDone) yield return null; clip = www.GetAudioClip(false, true, AudioType.WAV); clip.name = clipName; } text.sound.Add(element.Name.ToString(), clip); } }
/// <summary> /// Initializes a new instance of the <see cref="DecimalField"/> class. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> public DecimalField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default, Func <IRow, decimal?> getValue = null, Action <IRow, decimal?> setValue = null) : base(collection, FieldType.Decimal, name, caption, size, flags, getValue, setValue) { }
internal GenericClassField(ICollection <Field> collection, FieldType type, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, TValue> getValue = null, Action <IRow, TValue> setValue = null) : base(collection, type, name, caption, size, flags) { _getValue = getValue ?? (r => (TValue)(r.GetIndexedData(index))); _setValue = setValue ?? ((r, v) => r.SetIndexedData(index, v)); }
public IntrinsicData() { Name = new LocalText(); Desc = new LocalText(); Comment = ""; }
public AITactic() { Name = new LocalText(); Plans = new List <BasePlan>(); }
/// <summary> /// Initializes a new instance of the <see cref="ListField{TItem}"/> class. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> public ListField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default | FieldFlags.NotMapped, Func <IRow, List <TItem> > getValue = null, Action <IRow, List <TItem> > setValue = null) : base(collection, name, caption, size, flags, getValue, setValue) { }
public void LocalText_ImplicitConversionToString_ReturnsEmptyIfKeyIsEmpty() { LocalText text2 = new LocalText(String.Empty); string actual2 = text2; Assert.Equal(String.Empty, actual2); }
void ReadLaguageFile() { XElement root = XElement.Load(Application.dataPath + "/Resources/Localization.xml"); foreach (XElement x in root.Elements()) { if (localTextDict.ContainsKey(x.Attribute("name").Value)) Debug.LogError(x.Attribute("name").Value + " is a dublicate!"); else { LocalText newText = new LocalText(x); StartCoroutine(LoadMusic(x, newText)); localTextDict.Add(x.Attribute("name").Value, newText); } } }
/// <summary> /// Sets the caption for the filter field.</summary> /// <param name="display"> /// Filter field caption.</param> /// <returns> /// The FilterField object itself.</returns> public FilterField Title(LocalText title) { _title = title; return(this); }
public void LocalText_ToString_ReturnsTranslationFromRegistry() { using (new MunqContext()) { var registry = A.Fake<ILocalTextRegistry>(); A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .ReturnsLazily((string l, string k) => l + ":" + k); Dependency.Resolve<IDependencyRegistrar>().RegisterInstance(registry); string translation1 = new LocalText("Translation1").ToString(); string translation2 = new LocalText("Translation2").ToString(); string uiCulture = Thread.CurrentThread.CurrentUICulture.Name; Assert.Equal(uiCulture + ":Translation1", translation1); Assert.Equal(uiCulture + ":Translation2", translation2); A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .MustHaveHappened(Repeated.Exactly.Twice); A.CallTo(() => registry.TryGet(uiCulture, "Translation1")) .MustHaveHappened(Repeated.Exactly.Once); A.CallTo(() => registry.TryGet(uiCulture, "Translation2")) .MustHaveHappened(Repeated.Exactly.Once); } }
public void LocalText_ToString_ReturnsKeyIfNoTranslationIsFound() { using (new MunqContext()) { const string key = "Db.MissingTable.MissingField"; var registry = A.Fake<ILocalTextRegistry>(); A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .Returns(null); Dependency.Resolve<IDependencyRegistrar>().RegisterInstance(registry); var translation = new LocalText(key).ToString(); Assert.Equal(key, translation); A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .MustHaveHappened(Repeated.Exactly.Once); A.CallTo(() => registry.TryGet(A<string>._, key)) .MustHaveHappened(Repeated.Exactly.Once); } }
public void LocalText_ImplicitConversionToString_UsesRegisteredLocalTextRegistry() { using (new MunqContext()) { var registry = A.Fake<ILocalTextRegistry>(); Dependency.Resolve<IDependencyRegistrar>().RegisterInstance(registry); var text = new LocalText("Dummy"); string translation = text; A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .MustHaveHappened(Repeated.Exactly.Once); A.CallTo(() => registry.TryGet(A<string>._, "Dummy")) .MustHaveHappened(Repeated.Exactly.Once); } }
public void LocalText_ImplicitConversionToString_UsesCurrentUICulture() { using (new MunqContext()) { var registry = A.Fake<ILocalTextRegistry>(); Dependency.Resolve<IDependencyRegistrar>().RegisterInstance(registry); var text = new LocalText("Dummy"); var oldCulture = Thread.CurrentThread.CurrentUICulture; try { Thread.CurrentThread.CurrentUICulture = new CultureInfo("tr-TR"); string translation = text; Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB"); translation = text; } finally { Thread.CurrentThread.CurrentUICulture = oldCulture; } A.CallTo(() => registry.TryGet(A<string>._, A<string>._)) .MustHaveHappened(Repeated.Exactly.Twice); A.CallTo(() => registry.TryGet("tr-TR", "Dummy")) .MustHaveHappened(Repeated.Exactly.Once); A.CallTo(() => registry.TryGet("en-GB", "Dummy")) .MustHaveHappened(Repeated.Exactly.Once); } }
public void LocalText_ImplicitConversionToString_ReturnsNullIfKeyIsNull() { LocalText text1 = new LocalText(null); string actual1 = text1; Assert.Null(actual1); }
public void LocalText_ImplicitConversionToString_ReturnsKeyAsIsIfNoLocalTextProvider() { using (new MunqContext()) { string actual1 = new LocalText("Dummy"); Assert.Equal("Dummy", actual1); string actual2 = new LocalText(null); Assert.Null(actual2); string actual3 = new LocalText(String.Empty); Assert.Equal(String.Empty, actual3); } }
/// <summary> /// Initializes a new instance of the <see cref="ByteArrayField"/> class. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> public ByteArrayField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default, Func <IRow, byte[]> getValue = null, Action <IRow, byte[]> setValue = null) : base(collection, name, caption, size, flags, getValue, setValue) { }
public RowField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default | FieldFlags.NotMapped, Func <Row, TForeign> getValue = null, Action <Row, TForeign> setValue = null) : base(collection, name, caption, size, flags, getValue, setValue) { }
/// <summary> /// Creates a new FilterField object with given options.</summary> /// <param name="name"> /// Field name (required).</param> /// <param name="display"> /// Display text.</param> /// <param name="type"> /// Field type.</param> public FilterField(string name, LocalText title, string handler) { Initialize(name, title, handler, true); }
public void LocalText_Get_ReturnsEmptyIfKeyIsEmpty() { Assert.Equal(String.Empty, LocalText.Get(String.Empty)); }
public Result <ServiceResponse> ResetPassword(ResetPasswordRequest request) { return(this.InTransaction("Default", uow => { request.CheckNotNull(); if (string.IsNullOrEmpty(request.Token)) { throw new ArgumentNullException("token"); } var bytes = HttpContext.RequestServices .GetDataProtector("ResetPassword").Unprotect(Convert.FromBase64String(request.Token)); int userId; using (var ms = new MemoryStream(bytes)) using (var br = new BinaryReader(ms)) { var dt = DateTime.FromBinary(br.ReadInt64()); if (dt < DateTime.UtcNow) { throw new ValidationError(Texts.Validation.InvalidResetToken); } userId = br.ReadInt32(); } UserRow user; using (var connection = SqlConnections.NewFor <UserRow>()) { user = connection.TryById <UserRow>(userId); if (user == null) { throw new ValidationError(Texts.Validation.InvalidResetToken); } } if (request.ConfirmPassword != request.NewPassword) { throw new ValidationError("PasswordConfirmMismatch", LocalText.Get("Validation.PasswordConfirm")); } request.NewPassword = UserRepository.ValidatePassword(user.Username, request.NewPassword, false); string salt = null; var hash = UserRepository.GenerateHash(request.NewPassword, ref salt); UserRepository.CheckPublicDemo(user.UserId); uow.Connection.UpdateById(new UserRow { UserId = user.UserId.Value, PasswordSalt = salt, PasswordHash = hash }); BatchGenerationUpdater.OnCommit(uow, UserRow.Fields.GenerationKey); return new ServiceResponse(); })); }
/// <summary> /// Creates a new FilterField object with given options.</summary> /// <param name="name"> /// Field name (required).</param> /// <param name="display"> /// Display text.</param> /// <param name="type"> /// Field type.</param> /// <param name="isRequired"> /// Required flag.</param> public FilterField(string name, LocalText title, string handler, bool isRequired) { Initialize(name, title, handler, isRequired); }
public void LocalText_TryGet_ReturnsNullIfKeyIsNull() { Assert.Null(LocalText.TryGet(null)); }
/// <summary> /// Creates a new FilterField object with given options.</summary> /// <param name="name"> /// Field name (required).</param> /// <param name="display"> /// Display text.</param> /// <param name="type"> /// Field type.</param> public FilterField(string name, LocalText title) { Initialize(name, title, "String", true); }
public void LocalText_TryGet_ReturnsNullIfKeyIsEmpty() { Assert.Null(LocalText.TryGet(String.Empty)); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 1 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" ViewData["Title"] = Texts.Forms.Membership.Login.FormTitle; ViewData["PageId"] = "Login"; ViewData["BodyClass"] = "login-page"; Layout = MVC.Views.Shared._LayoutNoNavigation; #line default #line hidden BeginContext(202, 2, true); WriteLiteral("\r\n"); EndContext(); DefineSection("Head", async() => { BeginContext(219, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(225, 65, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "35eaf2ae1c83d18ba9a47e44f29efa8f3ccf6e075460", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(290, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(296, 54, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "35eaf2ae1c83d18ba9a47e44f29efa8f3ccf6e076792", async() => { } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(350, 2, true); WriteLiteral("\r\n"); EndContext(); } ); BeginContext(355, 397, true); WriteLiteral(@" <script id=""Template_Membership_LoginPanel"" type=""text/template""> <div class=""s-Form""> <form id=""~_Form"" action=""""> <div id=""~_PropertyGrid""></div> <div class=""row""> <div class=""col-xs-7""> <div class=""checkbox icheck""> <label> <input type=""checkbox""> "); EndContext(); BeginContext(753, 39, false); #line 21 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.RememberMe); #line default #line hidden EndContext(); BeginContext(792, 232, true); WriteLiteral("\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"col-xs-5\">\r\n <button id=\"~_LoginButton\" type=\"submit\" class=\"btn btn-primary btn-block btn-flat\">"); EndContext(); BeginContext(1025, 41, false); #line 26 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.SignInButton); #line default #line hidden EndContext(); BeginContext(1066, 97, true); WriteLiteral("</button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</script>\r\n\r\n"); EndContext(); #line 33 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" if (DataMigrations.SkippedMigrations) { #line default #line hidden BeginContext(1206, 422, true); WriteLiteral(@"<div class=""alert alert-error alert-dismissible""> <button type=""button"" class=""close"" data-dismiss=""alert"" aria-hidden=""true"">×</button> <h4><i class=""icon fa fa-warning""></i> Warning!</h4> SereneApp skipped running migrations to avoid modifying an arbitrary database. If you'd like to run migrations on this database, remove the safety check in SiteInitialization.RunMigrations method. </div> "); EndContext(); #line 42 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" } #line default #line hidden BeginContext(1631, 2, true); WriteLiteral("\r\n"); EndContext(); #line 44 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" if (ViewData["Activated"] != null) { #line default #line hidden BeginContext(1673, 181, true); WriteLiteral("<div class=\"alert alert-info alert-dismissible\">\r\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>\r\n <h4><i class=\"icon fa fa-info\"></i>"); EndContext(); BeginContext(1855, 41, false); #line 48 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(LocalText.Get("Dialogs.InformationTitle")); #line default #line hidden EndContext(); BeginContext(1896, 11, true); WriteLiteral("</h4>\r\n "); EndContext(); BeginContext(1908, 55, false); #line 49 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.SignUp.ActivationCompleteMessage); #line default #line hidden EndContext(); BeginContext(1963, 10, true); WriteLiteral("\r\n</div>\r\n"); EndContext(); #line 51 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" } #line default #line hidden BeginContext(1976, 65, true); WriteLiteral("\r\n<div class=\"login-box\">\r\n <div class=\"login-logo\">\r\n "); EndContext(); BeginContext(2042, 26, false); #line 55 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Navigation.SiteTitle); #line default #line hidden EndContext(); BeginContext(2068, 81, true); WriteLiteral("\r\n </div>\r\n <div class=\"login-box-body\">\r\n <p class=\"login-box-msg\">"); EndContext(); BeginContext(2150, 38, false); #line 58 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.FormTitle); #line default #line hidden EndContext(); BeginContext(2188, 123, true); WriteLiteral("</p>\r\n <div id=\"LoginPanel\">\r\n </div>\r\n <div class=\"social-auth-links text-center\">\r\n <p>- "); EndContext(); BeginContext(2312, 31, false); #line 62 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.OR); #line default #line hidden EndContext(); BeginContext(2343, 136, true); WriteLiteral(" -</p>\r\n <a href=\"#\" class=\"btn btn-block btn-social btn-facebook btn-flat\">\r\n <i class=\"fa fa-facebook\"></i> "); EndContext(); BeginContext(2480, 43, false); #line 64 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.FacebookButton); #line default #line hidden EndContext(); BeginContext(2523, 149, true); WriteLiteral("\r\n </a>\r\n <a href=\"#\" class=\"btn btn-block btn-social btn-google btn-flat\">\r\n <i class=\"fa fa-google-plus\"></i> "); EndContext(); BeginContext(2673, 41, false); #line 67 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.GoogleButton); #line default #line hidden EndContext(); BeginContext(2714, 46, true); WriteLiteral("\r\n </a>\r\n </div>\r\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 2760, "\"", 2807, 1); #line 70 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" WriteAttributeValue("", 2767, Url.Content("~/Account/ForgotPassword"), 2767, 40, false); #line default #line hidden EndWriteAttribute(); BeginContext(2808, 1, true); WriteLiteral(">"); EndContext(); BeginContext(2810, 43, false); #line 70 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.ForgotPassword); #line default #line hidden EndContext(); BeginContext(2853, 20, true); WriteLiteral("</a><br>\r\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 2873, "\"", 2912, 1); #line 71 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" WriteAttributeValue("", 2880, Url.Content("~/Account/SignUp"), 2880, 32, false); #line default #line hidden EndWriteAttribute(); BeginContext(2913, 21, true); WriteLiteral(" class=\"text-center\">"); EndContext(); BeginContext(2935, 41, false); #line 71 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Texts.Forms.Membership.Login.SignUpButton); #line default #line hidden EndContext(); BeginContext(2976, 590, true); WriteLiteral(@"</a> </div> </div> <script type=""text/javascript""> jQuery(function() { new SereneApp.Membership.LoginPanel($('#LoginPanel')).init(); $('.field.Username,.field.Password').addClass(""has-icon""); $('.field.Username input').after(""<span class='glyphicon glyphicon-user form-control-feedback'></span>""); $('.field.Password input').after(""<span class='glyphicon glyphicon-lock form-control-feedback'></span>""); $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' }); "); EndContext(); #line 86 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" if (ViewData["Activated"] != null) { #line default #line hidden BeginContext(3616, 83, true); WriteLiteral("\r\n $(function() { \r\n $(\'#SereneApp_Membership_LoginPanel0_Username\').val("); EndContext(); BeginContext(3700, 56, false); #line 90 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" Write(Html.Raw(Serenity.JSON.Stringify(ViewData["Activated"]))); #line default #line hidden EndContext(); BeginContext(3756, 83, true); WriteLiteral(");\r\n $(\'#SereneApp_Membership_LoginPanel0_Password\').focus();\r\n });\r\n "); EndContext(); #line 93 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Modules\Membership\Account\AccountLogin.AdminLTE.cshtml" } #line default #line hidden BeginContext(3851, 14, true); WriteLiteral("});\r\n</script>"); EndContext(); }
public DateTimeOffsetField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default, Func <Row, DateTimeOffset?> getValue = null, Action <Row, DateTimeOffset?> setValue = null) : base(collection, FieldType.DateTime, name, caption, size, flags, getValue, setValue) { }
public CustomClassField(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, TValue> getValue, Action <IRow, TValue> setValue) : base(collection, FieldType.Object, name, caption, size, flags, getValue, setValue) { }
public static DateTimeOffsetField Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <Row, DateTimeOffset?> getValue, Action <Row, DateTimeOffset?> setValue) { return(new DateTimeOffsetField(collection, name, caption, size, flags, getValue, setValue)); }
public RankData(LocalText name, int bagSize, int fameToNext) { Name = name; BagSize = bagSize; FameToNext = fameToNext; }
/// <summary> /// Static factory for field, for backward compatibility, avoid using. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> /// <returns></returns> public static VariantField Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, object> getValue, Action <IRow, object> setValue) { return(new VariantField(collection, name, caption, size, flags, getValue, setValue)); }
private ReportColumn FromPropertyItem(PropertyItem item, Field field, PropertyInfo property) { var result = new ReportColumn(); result.Name = item.Name; result.Title = item.Title ?? item.Name; if (result.Title != null) { result.Title = LocalText.TryGet(result.Title) ?? result.Title; } if (item.Width != null) { result.Width = item.Width; } if (!string.IsNullOrWhiteSpace(item.DisplayFormat)) { result.Format = item.DisplayFormat; } else { var dtf = field as DateTimeField; if (!ReferenceEquals(null, dtf) && dtf.DateTimeKind != DateTimeKind.Unspecified) { result.Format = "dd/MM/yyyy HH:mm"; } else if (!ReferenceEquals(null, dtf)) { result.Format = "dd/MM/yyyy"; } } var enumField = field as IEnumTypeField; if (enumField != null && enumField.EnumType != null) { result.Decorator = new EnumDecorator(enumField.EnumType); } if (property != null) { var decorator = property.GetCustomAttribute <CellDecoratorAttribute> (); if (decorator != null && decorator.DecoratorType != null) { result.Decorator = (ICellDecorator)Activator.CreateInstance(decorator.DecoratorType); } } if (!ReferenceEquals(null, field)) { if (result.Title == null) { result.Title = field.Title; } if (result.Width == null && field is StringField && field.Size != 0) { result.Width = field.Size; } } result.DataType = !ReferenceEquals(null, field) ? field.ValueType : null; return(result); }
/// <summary> /// Initializes a new instance of the <see cref="JsonField{TValue}"/> class. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> public JsonField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default, Func <IRow, TValue> getValue = null, Action <IRow, TValue> setValue = null) : base(collection, FieldType.Object, name, caption, size, flags, getValue, setValue) { }
public RankData() { Name = new LocalText(); Comment = ""; }
/// <summary> /// Static factory for field, for backward compatibility, avoid using. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> /// <returns></returns> public static JsonField <TValue> Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, TValue> getValue, Action <IRow, TValue> setValue) { return(new JsonField <TValue>(collection, name, caption, size, flags, getValue, setValue)); }
/// <summary> /// Static factory for field, for backward compatibility, avoid using. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> /// <returns></returns> public static DecimalField Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, decimal?> getValue, Action <IRow, decimal?> setValue) { return(new DecimalField(collection, name, caption, size, flags, getValue, setValue)); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(0, 17, true); WriteLiteral("<!DOCTYPE html>\r\n"); EndContext(); #line 2 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Func <string, HtmlString> json = x => new HtmlString(Serenity.JSON.Stringify(x)); var hideNav = (string)Context.Request.Query["hideNav"] == "1"; var logged = Serenity.Authorization.Username; var themeCookie = Context.Request.Cookies["ThemePreference"]; var theme = !themeCookie.IsEmptyOrNull() ? themeCookie : "blue"; var darkSidebar = theme != null && theme.IndexOf("light") < 0; var rtl = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft; var user = (UserDefinition)Serenity.Authorization.UserDefinition; var userImage = System.Web.VirtualPathUtility.ToAbsolute( (user == null || string.IsNullOrEmpty(user.UserImage)) ? "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURT0oHC0tLTIwLzQzMzo2NDs4Njo6OkQrHUMtIEkuIEYwIkgyI0o0KkI7NkM+O0g/O1M3K1c7KUFAPkpBPFdAK1pCLVFEPlhANWJHOWJJMWpONGlQNnJZO0FBQU5EQEpJRkxLS1JHQVNKRVBOTF1OR1JRTl5QSlFRUVhWVFlYVltbWmJUTGtRRWpWTGBeWmtbUXVcQXZbT3hURGNhXnhhRnVkW3hhVntlWmRkZG1qZWxranBsZ3FuaXRxbHt0bXNzc3l2cHx4coVQOIBcSopbRoVxWpRwX55yXYNtYYtvYYxxZIN/eZV1ZZV7bZt6aqZhQ65hQb1oQ6J9a+w4Puw9QsdlPMhnPsVrRcVuSclrQ8RxTMxyTMV1UsR4VsF7XMt2Uc55U859WtB6VdF9WcB/YexGS+5cYfBkafFtcfF3evJ4fIWBe4mFfpSEcJWHeZ6Pf6mDb6mKer6Far2IbrCJdbyMdLiPerCQfruRfM+CX9OAXMCAYsCSfNWFYdaJZteKaNiMatmQbtuTc9qXe92Yd96ZeuCdfYSEhIuHgI2JgoqKipKNhpmNhJWRiZmUjJ6ZkJ2dnaKWjKGck62dlLWTgbqXhLmZh7ibirifkKWgl6ahmKiimaqkm6umnKymna6onrailLWpnbiplbusmq+poKmpqbCqoLKsorOtpLWroLSsorSupLWwprexqLm5ucOXgMaZgcuchdKdg8iijcaol82mkdCgh9Ojit+gg9mmjdypjtKqld2qkNiumN6znMS9tOqKiuGfgPOChvSMj/SNkOKjhOOmieWqjOWtkeKumOiukeawlOG1numyluq1muy4ne28o+u+qsPBv8vBtsvFv+/Apu3CrezEsu/It/DAp/DBqPHHsfHJtPLNusPDw8rGwc7JwtbW1tjU0d/b19vb2+/RxeDb1+nd1/nCw/nKzPPTwvTXyPTZy/Xd0fvW2Pva2/fg0/jl2+Tj4+jk4evr6/fo4fnr5fzt7Pvx7PTz8/318/349v7+/gAAAAAAAAAAAIt9dAgAAAEAdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wBT9wclAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAGXRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4wLjEzNANbegAAClFJREFUaEO1mX90FFcVx0k3efVHGzWxVbRT1tJ0YKNHNHrYxNJW688ey6mEFjYbSdxFqqb+KBSNsRuW0Y1GJFREsYCEtJJ4slo5WKxiK+LpZNZt3+zj6Iaz20DLkfoTrKQcCun84b1v3mzm1+6SP/ye/Jh9797P3Ln3vjczyby0v/YQqYwIqIZIOB+QtwlzP5VDp2+uxA7AJM43BFpHhb1XvujgzVt3P9xggvzE0ZwtkYbtwskjXzQJcKGrvwifE+yh7WPCzyl/NMYFl42u/uJUwa4JBHcLR4d80U3gg9UyARXEDWoCAbLFJ3Bf9AerMi2hIZAJ2SpcbfJFP1whFS7h9QVIbdMub6e40WNbbmlZ1MQ7wFSVC4BpjDpQs/AnglCSJ+ptmONAjfAEVWELA3Kb8J+VNyHDaGh2nulkrjy3PGOeLvHJ9RB6lRacybZ3izjCMXsPtQr3ktzobVtH07ehAw9csAOCwz+KQ0vcAkXchfSgF5GewVIVxW9B8VUpM2RQICx5EjLWUkeg6Ja9+bOyuI0ktQiCJTd6SAIypAC2TZRY7ILhVS0uF24iSUGBsORGjw6iFdjD9oROwhMxDvH9q+bGQzfhB7QAG4Gw5EnIfbOghR9vfkMtCE4yezZLAL76a6x4Px8y0XsFQsiDbuVW6Pt+ViwWC4VikR26c2lzc/MNjfW1V/BoQXWN796B8+wGtDWvrBpaFujAUjYJrkifxAP8ZuzZZ5/63aEdO3b86vfIxblDHI3sauixBWbMpPlYEQI2/fEAvyfzpTFLheL9tdwe3FyN7Ub/FO5baFn/lBsC8hkqFvN3inRXK+NetIF0LBeO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" : "~/upload/" + user.UserImage); #line default #line hidden BeginContext(5902, 27, true); WriteLiteral("<!--[if IE 8]> <html lang=\""); EndContext(); BeginContext(5930, 54, false); #line 15 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(System.Globalization.CultureInfo.CurrentUICulture.Name); #line default #line hidden EndContext(); BeginContext(5984, 62, true); WriteLiteral("\" class=\"ie8 no-js\"> <![endif]-->\r\n<!--[if IE 9]> <html lang=\""); EndContext(); BeginContext(6047, 54, false); #line 16 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(System.Globalization.CultureInfo.CurrentUICulture.Name); #line default #line hidden EndContext(); BeginContext(6101, 60, true); WriteLiteral("\" class=\"ie9 no-js\"> <![endif]-->\r\n<!--[if !IE]><!-->\r\n<html"); EndContext(); BeginWriteAttribute("lang", " lang=\"", 6161, "\"", 6223, 1); #line 18 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteAttributeValue("", 6168, System.Globalization.CultureInfo.CurrentUICulture.Name, 6168, 55, false); #line default #line hidden EndWriteAttribute(); BeginWriteAttribute("class", " class=\"", 6224, "\"", 6271, 2); WriteAttributeValue("", 6232, "no-js", 6232, 5, true); #line 18 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteAttributeValue("", 6237, hideNav ? " no-navigation" : "", 6237, 34, false); #line default #line hidden EndWriteAttribute(); BeginContext(6272, 21, true); WriteLiteral(">\r\n<!--<![endif]-->\r\n"); EndContext(); BeginContext(6293, 157, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3815141", async() => { BeginContext(6299, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(6305, 48, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ba908daa19e486839f6ad4d1e477e7e54a564c3815529", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); BeginWriteTagHelperAttribute(); #line 21 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteLiteral(MVC.Views.Shared._LayoutHead); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("name", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6353, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(6360, 28, false); #line 22 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderSection("Head", false)); #line default #line hidden EndContext(); BeginContext(6388, 13, true); WriteLiteral("\r\n <title>"); EndContext(); BeginContext(6403, 17, false); #line 23 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(ViewData["Title"]); #line default #line hidden EndContext(); BeginContext(6421, 22, true); WriteLiteral(" - SereneApp</title>\r\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6450, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(6452, 6803, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3818832", async() => { BeginContext(6692, 57, true); WriteLiteral("\r\n<div id=\"PageBackground\" style=\"display: none\"></div>\r\n"); EndContext(); #line 27 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" if (hideNav) { #line default #line hidden BeginContext(6767, 74, true); WriteLiteral(" <script type=\"text/javascript\">\r\n $(function () {\r\n "); EndContext(); BeginContext(6842, 38, false); #line 31 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderSection("PageInitScript", false)); #line default #line hidden EndContext(); BeginContext(6880, 140, true); WriteLiteral("\r\n });\r\n </script>\r\n <div id=\"page-outer-nonav\">\r\n <div id=\"page-container\" class=\"page-container-common\">\r\n "); EndContext(); BeginContext(7021, 12, false); #line 36 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderBody()); #line default #line hidden EndContext(); BeginContext(7033, 30, true); WriteLiteral("\r\n </div>\r\n </div>\r\n"); EndContext(); #line 39 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" } else { #line default #line hidden BeginContext(7075, 77, true); WriteLiteral(" <div class=\"wrapper\">\r\n <header class=\"main-header\">\r\n "); EndContext(); BeginContext(7152, 199, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3820853", async() => { BeginContext(7178, 106, true); WriteLiteral("\r\n <span class=\"logo-mini\"><i></i></span>\r\n <span class=\"logo-lg\"><i></i><b>"); EndContext(); BeginContext(7285, 37, false); #line 46 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(LocalText.Get("Navigation.SiteTitle")); #line default #line hidden EndContext(); BeginContext(7322, 25, true); WriteLiteral("</b></span>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(7351, 541, true); WriteLiteral(@" <nav class=""navbar navbar-static-top"" role=""navigation""> <a href=""#"" class=""sidebar-toggle"" data-toggle=""offcanvas"" role=""button""> <span class=""sr-only"">Toggle navigation</span> </a> <div class=""navbar-custom-menu""> <ul class=""nav navbar-nav""> <li class=""dropdown user user-menu""> <a href=""#"" class=""dropdown-toggle"" data-toggle=""dropdown""> <img"); EndContext(); BeginWriteAttribute("src", " src=\"", 7892, "\"", 7908, 1); #line 57 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteAttributeValue("", 7898, userImage, 7898, 10, false); #line default #line hidden EndWriteAttribute(); BeginContext(7909, 95, true); WriteLiteral(" class=\"user-image\" alt=\"User Image\">\r\n <span class=\"hidden-xs\">"); EndContext(); BeginContext(8005, 31, false); #line 58 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Serenity.Authorization.Username); #line default #line hidden EndContext(); BeginContext(8036, 250, true); WriteLiteral("</span>\r\n </a>\r\n <ul class=\"dropdown-menu\">\r\n <!-- User image -->\r\n <li class=\"user-header\">\r\n <img"); EndContext(); BeginWriteAttribute("src", " src=\"", 8286, "\"", 8302, 1); #line 63 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteAttributeValue("", 8292, userImage, 8292, 10, false); #line default #line hidden EndWriteAttribute(); BeginContext(8303, 122, true); WriteLiteral(" class=\"img-circle\" alt=\"User Image\">\r\n\r\n <p>\r\n "); EndContext(); BeginContext(8427, 36, false); #line 66 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(user != null ? user.DisplayName : ""); #line default #line hidden EndContext(); BeginContext(8464, 297, true); WriteLiteral(@" </p> </li> <!-- Menu Footer--> <li class=""user-footer""> <div class=""pull-left""> "); EndContext(); BeginContext(8761, 153, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3825876", async() => { BeginContext(8829, 33, true); WriteLiteral("<i class=\"fa fa-lock fa-fw\"></i> "); EndContext(); BeginContext(8863, 47, false); #line 73 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Forms.Membership.ChangePassword.FormTitle); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8914, 148, true); WriteLiteral("\r\n </div>\r\n <div class=\"pull-right\">\r\n "); EndContext(); BeginContext(9062, 141, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3827928", async() => { BeginContext(9123, 37, true); WriteLiteral("<i class=\"fa fa-sign-out fa-fw\"></i> "); EndContext(); BeginContext(9161, 38, false); #line 76 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(LocalText.Get("Navigation.LogoutLink")); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(9203, 504, true); WriteLiteral(@" </div> </li> </ul> </li> <li> <a href=""#"" data-toggle=""control-sidebar""><i class=""fa fa-sliders""></i></a> </li> </ul> </div> </nav> </header> <aside class=""main-sidebar""> <section class=""sidebar""> "); EndContext(); BeginContext(9707, 493, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3830331", async() => { BeginContext(9758, 435, true); WriteLiteral(@" <div class=""input-group""> <input type=""text"" id=""SidebarSearch"" name=""q"" class=""form-control"" autocomplete=""off""> <span class=""input-group-btn""> <button type=""button"" name=""search"" id=""search-btn"" class=""btn btn-flat""><i class=""fa fa-search""></i></button> </span> </div> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(10200, 82, true); WriteLiteral("\r\n <ul class=\"sidebar-menu\" id=\"SidebarMenu\">\r\n "); EndContext(); BeginContext(10282, 102, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ba908daa19e486839f6ad4d1e477e7e54a564c3832798", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); BeginWriteTagHelperAttribute(); #line 101 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" WriteLiteral(MVC.Views.Shared.LeftNavigation); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("name", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 101 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = new SereneApp.Navigation.NavigationModel(); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(10384, 108, true); WriteLiteral("\r\n </ul>\r\n </section>\r\n </aside>\r\n\r\n <div class=\"content-wrapper\">\r\n"); EndContext(); #line 107 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" if (IsSectionDefined("ContentHeader")) { #line default #line hidden BeginContext(10560, 70, true); WriteLiteral(" <section class=\"content-header\">\r\n "); EndContext(); BeginContext(10631, 30, false); #line 110 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderSection("ContentHeader")); #line default #line hidden EndContext(); BeginContext(10661, 30, true); WriteLiteral("\r\n </section>\r\n"); EndContext(); #line 112 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" } #line default #line hidden BeginContext(10706, 55, true); WriteLiteral(" <section class=\"content\">\r\n "); EndContext(); BeginContext(10762, 12, false); #line 114 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderBody()); #line default #line hidden EndContext(); BeginContext(10774, 146, true); WriteLiteral("\r\n </section>\r\n </div>\r\n\r\n <footer class=\"main-footer\">\r\n <div class=\"pull-right hidden-xs\">\r\n "); EndContext(); BeginContext(10921, 28, false); #line 120 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.FooterInfo); #line default #line hidden EndContext(); BeginContext(10949, 42, true); WriteLiteral("\r\n </div>\r\n <strong>"); EndContext(); BeginContext(10992, 33, false); #line 122 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.FooterCopyright); #line default #line hidden EndContext(); BeginContext(11025, 10, true); WriteLiteral("</strong> "); EndContext(); BeginContext(11036, 30, false); #line 122 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.FooterRights); #line default #line hidden EndContext(); BeginContext(11066, 225, true); WriteLiteral("\r\n </footer>\r\n\r\n <aside class=\"control-sidebar control-sidebar-dark\">\r\n <div class=\"tab-content\">\r\n <div class=\"tab-pane active\" id=\"control-sidebar-settings-tab\">\r\n "); EndContext(); BeginContext(11291, 728, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ba908daa19e486839f6ad4d1e477e7e54a564c3838227", async() => { BeginContext(11311, 62, true); WriteLiteral("\r\n <h3 class=\"control-sidebar-heading\">"); EndContext(); BeginContext(11374, 33, false); #line 129 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.GeneralSettings); #line default #line hidden EndContext(); BeginContext(11407, 129, true); WriteLiteral("</h3>\r\n\r\n <div class=\"form-group\">\r\n <label class=\"control-sidebar-subheading\">"); EndContext(); BeginContext(11537, 26, false); #line 132 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.Language); #line default #line hidden EndContext(); BeginContext(11563, 278, true); WriteLiteral(@"</label> <select id=""LanguageSelect"" class=""form-control""></select> </div> <div class=""form-group"" style=""margin-top: 15px;""> <label class=""control-sidebar-subheading"">"); EndContext(); BeginContext(11842, 23, false); #line 137 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(Texts.Site.Layout.Theme); #line default #line hidden EndContext(); BeginContext(11865, 147, true); WriteLiteral("</label>\r\n <select id=\"ThemeSelect\" class=\"form-control\"></select>\r\n </div>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(12019, 124, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </aside>\r\n <div class=\"control-sidebar-bg\"></div>\r\n </div>\r\n"); EndContext(); BeginContext(12145, 240, true); WriteLiteral(" <script type=\"text/javascript\">\r\n $().ready(function () {\r\n new SereneApp.Common.SidebarSearch($(\'#SidebarSearch\'), $(\'#SidebarMenu\')).init();\r\n new SereneApp.Common.LanguageSelection($(\'#LanguageSelect\'), \'"); EndContext(); BeginContext(12387, 54, false); #line 150 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(System.Globalization.CultureInfo.CurrentUICulture.Name); #line default #line hidden EndContext(); BeginContext(12442, 86, true); WriteLiteral("\');\r\n new SereneApp.Common.ThemeSelection($(\'#ThemeSelect\'));\r\n "); EndContext(); BeginContext(12529, 38, false); #line 152 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" Write(RenderSection("PageInitScript", false)); #line default #line hidden EndContext(); BeginContext(12567, 678, true); WriteLiteral(@"; var doLayout = function () { height = (this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height; height -= $('header.main-header').outerHeight() || 0; height -= $('section.content-header').outerHeight() || 0; height -= $('footer.main-footer').outerHeight() || 0; if (height < 200) height = 200; $(""section.content"").css(""min-height"", (height) + ""px""); $('body').triggerHandler('layout'); }; $(window).bind(""load resize layout"", doLayout); doLayout(); }); </script> "); EndContext(); #line 169 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" } #line default #line hidden } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "id", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); AddHtmlAttributeValue("", 6462, "s-", 6462, 2, true); #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue("", 6464, ViewData["PageId"], 6464, 21, false); #line default #line hidden AddHtmlAttributeValue("", 6485, "Page", 6485, 4, true); EndAddHtmlAttributeValues(__tagHelperExecutionContext); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "class", 9, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue("", 6498, ViewData["BodyClass"], 6498, 24, false); #line default #line hidden AddHtmlAttributeValue(" ", 6522, "fixed", 6523, 6, true); AddHtmlAttributeValue(" ", 6528, "sidebar-mini", 6529, 13, true); AddHtmlAttributeValue(" ", 6541, "hold-transition", 6542, 16, true); AddHtmlAttributeValue(" ", 6557, "skin-", 6558, 6, true); #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue("", 6563, theme, 6563, 6, false); #line default #line hidden #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue(" ", 6569, darkSidebar ? "dark-sidebar" : "light-sidebar", 6570, 49, false); #line default #line hidden #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue("", 6619, hideNav ? " no-navigation" : " has-layout-event", 6619, 51, false); #line default #line hidden #line 25 "D:\Users\tamir\Source\Repos\SereneApp\SereneApp.Web\Views\Shared\_Layout.cshtml" AddHtmlAttributeValue("", 6670, rtl ? " rtl" : "", 6670, 20, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(13255, 9, true); WriteLiteral("\r\n</html>"); EndContext(); }
/// <summary> /// Static factory for field, for backward compatibility, avoid using. /// </summary> /// <param name="collection">The collection.</param> /// <param name="name">The name.</param> /// <param name="caption">The caption.</param> /// <param name="size">The size.</param> /// <param name="flags">The flags.</param> /// <param name="getValue">The get value.</param> /// <param name="setValue">The set value.</param> /// <returns></returns> public static ByteArrayField Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <IRow, byte[]> getValue, Action <IRow, byte[]> setValue) { return(new ByteArrayField(collection, name, caption, size, flags, getValue, setValue)); }
public StreamField(ICollection <Field> collection, string name, LocalText caption = null, int size = 0, FieldFlags flags = FieldFlags.Default, Func <Row, Stream> getValue = null, Action <Row, Stream> setValue = null) : base(collection, FieldType.Stream, name, caption, size, flags, getValue, setValue) { }
public static StreamField Factory(ICollection <Field> collection, string name, LocalText caption, int size, FieldFlags flags, Func <Row, Stream> getValue, Action <Row, Stream> setValue) { return(new StreamField(collection, name, caption, size, flags, getValue, setValue)); }
public void LocalText_ImplicitConversionToString_DoesntThrowIfNoLocalTextProvider() { using (new MunqContext()) { Assert.DoesNotThrow(() => { string actual = new LocalText("Dummy"); }); } }