public static string LoadInhalt(TemplateName name) { switch (name) { case TemplateName.RednerAnfragenMailText: return(Templates.LoadRednerAnfragenMailText().Inhalt); case TemplateName.RednerTermineMailText: return(Templates.LoadRednerTermineMailText().Inhalt); case TemplateName.ExterneAnfrageAblehnenInfoAnKoordinatorMailText: return(Templates.LoadExterneAnfrageAblehnenTextKoordinator().Inhalt); case TemplateName.ExterneAnfrageAblehnenInfoAnRednerMailText: return(Templates.LoadExterneAnfrageAblehnenTextRedner().Inhalt); case TemplateName.ExterneAnfrageAnnehmenInfoAnKoordinatorMailText: return(Templates.LoadExterneAnfrageAnnehmenTextKoordinator().Inhalt); case TemplateName.ExterneAnfrageAnnehmenInfoAnRednerMailText: return(Templates.LoadExterneAnfrageAnnehmenTextRedner().Inhalt); case TemplateName.EreignisTauschenMailText: return(Templates.LoadEreignisTauschenMailText().Inhalt); case TemplateName.RednerErinnerungMailText: return(Templates.LoadRednerErinnerungMailText().Inhalt); case TemplateName.Signatur: return(Templates.LoadSignatur().Inhalt); default: return(string.Empty); } }
/// <summary> /// Performs enhanced record-by-record processing functionality for the cmdlet. /// </summary> protected override void ProcessRecordEx() { var ids = new[] { Id }; var id = GetSingleOperationId(Device, ids)[0]; if (ShouldProcess(GetShouldProcessMessage(Device, ids))) { if (TemplateName != null && TemplateName.Length > 0) { var templates = client.GetDeviceTemplates(id); Template = templates.Where(template => TemplateName .Select(name => new WildcardPattern(name, WildcardOptions.IgnoreCase)) .Any(filter => filter.IsMatch(template.Name) || filter.IsMatch(template.Value)) ).ToArray(); if (Template.Length == 0) { throw new ArgumentException($"No device templates could be found that match the specified template names {TemplateName.ToQuotedList()}."); } } ExecuteOperation( () => client.AutoDiscover(id, Template), GetSingleOperationProgressMessage(Device, ids, "Starting Auto-Discovery on", "device") ); } }
public UCTemplateItemExameFisico(TemplateName _templateName) { InitializeComponent(); Dock = DockStyle.Fill; lbltituloExame.Text = "Template de exame físico: " + _templateName.Nome; Template = _templateName; }
public Tuple <List <string>, List <string>, List <string> > TemplateTypeNames() { if (Pop.Population.Templates == null) { return(new Tuple <List <string>, List <string>, List <string> >(new List <string>(), new List <string>(), new List <string>())); } List <string> TFBotTemplates = new List <string>(); List <string> WaveSpawnTemplates = new List <string>(); List <string> GenericTemplates = new List <string>(); List <string> AllTemplateNames = Pop.Population.Templates.Keys.ToList(); foreach (string TemplateName in AllTemplateNames) { switch (Pop.Population.Templates[TemplateName.ToUpper()].TemplateType) { case "TFBOT": TFBotTemplates.Add(TemplateName); break; case "WAVESPAWN": WaveSpawnTemplates.Add(TemplateName); break; default: GenericTemplates.Add(TemplateName); break; } } return(new Tuple <List <string>, List <string>, List <string> >(TFBotTemplates, WaveSpawnTemplates, GenericTemplates)); }
public void TemplateNameQueryUsingoAuth() { QueryService <TemplateName> entityQuery = new QueryService <TemplateName>(qboContextoAuth); TemplateName existing = Helper.FindOrAdd <TemplateName>(qboContextoAuth, new TemplateName()); List <TemplateName> entities = entityQuery.Where(c => c.Id == existing.Id).ToList(); Assert.IsTrue(entities.Count() > 0); }
public void TemplateNameQueryUsingoAuth() { QueryService <TemplateName> entityQuery = new QueryService <TemplateName>(qboContextoAuth); TemplateName existing = Helper.FindOrAdd <TemplateName>(qboContextoAuth, new TemplateName()); //List<TemplateName> entities = entityQuery.Where(c => c.Id == existing.Id).ToList(); int count = entityQuery.ExecuteIdsQuery("Select * from TemplateName where Id='" + existing.Id + "'").Count; Assert.IsTrue(count > 0); }
public void TemplateNameVoidAsyncTestsUsingoAuth() { //Creating the TemplateName for Adding TemplateName entity = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, entity); Helper.VoidAsync <TemplateName>(qboContextoAuth, added); }
// overcome bug in ANTLR 3.2 public TemplateParser(ITokenStream input, RecognizerSharedState state, ICodeGenerator gen, TemplateName enclosingTemplateName) : base(null, null) { this.input = input; this.state = state; if (gen != null) this.gen = gen; this._enclosingTemplateName = enclosingTemplateName; }
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output) { var vca = _htmlHelper as IViewContextAware; if (vca != null) { vca.Contextualize(ViewContext); } output.TagName = TagName; output.TagMode = TagMode.StartTagAndEndTag; var urlHelper = _urlHelperFactory.GetUrlHelper(ViewContext); var routeValues = ViewContext == null ? new RouteValueDictionary() : ViewContext.RouteData.Values; int pageIndex; string strIndex = routeValues != null && routeValues.ContainsKey(PageIndexParameterName) ? (string)routeValues[PageIndexParameterName] : (string)ViewContext?.HttpContext?.Request?.Query[PageIndexParameterName]; if (!int.TryParse(strIndex, out pageIndex)) { pageIndex = 1; } //如果当前页超出总页数,则重置当前页为最后一页 while (TotalItemCount > 0 && TotalItemCount <= (pageIndex - 1) * PageSize) { pageIndex--; } if (pageIndex < 1) { pageIndex = 1; } var metaData = new RazorPagerMetaData(TotalItemCount, pageIndex, PageSize, PageIndexParameterName, routeValues, MaxPagerItems, urlHelper); IHtmlContent partialContent; if (!TemplateName.Contains('\\') && !TemplateName.Contains('/')) //not a relative path { partialContent = await _htmlHelper.PartialAsync("RazorPager_" + TemplateName, metaData); } else { partialContent = await _htmlHelper.PartialAsync(TemplateName, metaData); } var writer = new StringWriter(); writer.WriteLine(); partialContent.WriteTo(writer, _htmlEncoder); output.Content.SetHtmlContent(writer.ToString()); }
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); JsCssTool.ReCreateIfNotExist(); CssTop = JsCssTool.MiniCss(_CssTopList, TemplateName.IsNullOrEmpty() ? "all.css" : TemplateName + "_all.css"); JsTop = JsCssTool.MiniJs(_JsTopList, TemplateName.IsNullOrEmpty() ? "libs.js" : TemplateName + "_libs.js"); JsBottom = JsCssTool.MiniJs(_JsBottomList, TemplateName.IsNullOrEmpty() ? "all.js" : TemplateName + "_all.js"); }
public void TemplateNameAddAsyncTestsUsingoAuth() { //Creating the TemplateName for Add TemplateName entity = QBOHelper.CreateTemplateName(qboContextoAuth); TemplateName added = Helper.AddAsync <TemplateName>(qboContextoAuth, entity); QBOHelper.VerifyTemplateName(entity, added); }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state) { LoadAuthentication(context); templateName = TemplateName.Get(context); GetTemplateInfoDelegate = new Action(_GetTemplateInfo); return(GetTemplateInfoDelegate.BeginInvoke(callback, state)); }
public void TemplateNameAddTestUsingoAuth() { //Creating the TemplateName for Add TemplateName templateName = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, templateName); //Verify the added TemplateName QBOHelper.VerifyTemplateName(templateName, added); }
public void TemplateNameFindbyIdTestUsingoAuth() { //Creating the TemplateName for Adding TemplateName templateName = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, templateName); TemplateName found = Helper.FindById <TemplateName>(qboContextoAuth, added); QBOHelper.VerifyTemplateName(found, added); }
private void AppendEditor(IHtmlNode container, HtmlHelper <TModel> htmlHelper) { if (TemplateName.HasValue()) { AppendEditorTemplate(htmlHelper, container); } else { AppendEditorFor(htmlHelper, container); } }
private void AppendValidator(IHtmlNode container, HtmlHelper <TModel> htmlHelper) { if (TemplateName.HasValue() && (typeof(TModel).IsDataRow() || typeof(TModel).IsDynamicObject())) { AppendValidatorForTemplate(htmlHelper, container); } else { AppendValidatorFor(htmlHelper, container); } }
private void ValidateTemplateName() { ClearErrorInfo(nameof(TemplateName)); if (TemplateName.Any(c => Path.GetInvalidFileNameChars().Contains(c))) { AddErrorInfo(nameof(TemplateName), "Enter a valid name as file name."); } else if (CsvConfigFileManager.Default.SettingsList.Contains(TemplateName)) { AddErrorInfo(nameof(TemplateName), $"{TemplateName} is already exist."); } }
private string LookupTemplateIDInDefinitions(SPSite site) { SPWebTemplateCollection templates = site.GetWebTemplates(LCID); foreach (SPWebTemplate template in templates) { if ((template.Name.ToLower() == TemplateName.ToLower()) || (template.Title.ToLower() == TemplateName.ToLower())) { return(template.Name); } } return(string.Empty); }
public void TemplateNameUpdateTestUsingoAuth() { //Creating the TemplateName for Adding TemplateName templateName = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, templateName); //Change the data of added entity TemplateName changed = QBOHelper.UpdateTemplateName(qboContextoAuth, added); //Update the returned entity data TemplateName updated = Helper.Update <TemplateName>(qboContextoAuth, changed);//Verify the updated TemplateName QBOHelper.VerifyTemplateName(changed, updated); }
public void TemplateNameUpdatedAsyncTestsUsingoAuth() { //Creating the TemplateName for Adding TemplateName entity = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, entity); //Update the TemplateName TemplateName updated = QBOHelper.UpdateTemplateName(qboContextoAuth, added); //Call the service TemplateName updatedReturned = Helper.UpdateAsync <TemplateName>(qboContextoAuth, updated); //Verify updated TemplateName QBOHelper.VerifyTemplateName(updated, updatedReturned); }
public ObjectCall(string call, AssembleInfo info) { TemplateName = info.TemplateName; FormatName = string.Empty; char[] splitParams = { '.' }; var callParams = call.Split(splitParams); if (callParams.Length > 3) { throw new ArgumentException("Invalid object call: " + call); } switch (callParams.Length) { case 3: TemplateName = callParams[0]; ObjectName = callParams[1]; FormatName = callParams[2]; TypeCode = "TOF"; break; case 2: if (info.IsTemplateName(callParams[0])) { TypeCode = "TO"; TemplateName = callParams[0]; ObjectName = callParams[1]; } else { TypeCode = "OF"; ObjectName = callParams[0]; FormatName = callParams[1]; } break; case 1: TypeCode = "O"; ObjectName = callParams[0]; break; } TemplateName = TemplateName.ToLowerInvariant(); ObjectName = ObjectName.ToLowerInvariant(); FormatName = FormatName.ToLowerInvariant(); }
public string LoadLayout() { string filePath = Decide.IsTemplateDefault(TemplateName.Trim()) ? Utils.GetTemplatePath_Default(TemplateName) : Utils.GetTemplatePath(TemplateName); DirectoryInfo dir = new DirectoryInfo(filePath + "/layouts"); StringBuilder html = new StringBuilder(); foreach (FileInfo layout in dir.GetFiles()) { string layoutName = layout.Name.Replace(".xml", ""); html.Append("<option"); html.Append(" value='"); html.Append(layoutName); html.Append("'>"); html.Append(layoutName); html.Append("</option>"); } return(html.ToString()); }
public void TemplateNameDeleteTestUsingoAuth() { //Creating the TemplateName for Adding TemplateName templateName = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the TemplateName TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, templateName); //Delete the returned entity try { TemplateName deleted = Helper.Delete <TemplateName>(qboContextoAuth, added); Assert.AreEqual(EntityStatusEnum.Deleted, deleted.status); } catch (IdsException ex) { Assert.Fail(); } }
public void TemplateNameVoidTestUsingoAuth() { //Creating the entity for Adding TemplateName entity = QBOHelper.CreateTemplateName(qboContextoAuth); //Adding the entity TemplateName added = Helper.Add <TemplateName>(qboContextoAuth, entity); //Void the returned entity try { TemplateName voided = Helper.Void <TemplateName>(qboContextoAuth, added); Assert.AreEqual(EntityStatusEnum.Voided, voided.status); } catch (IdsException ex) { Assert.Fail(); } }
public void TemplateNameBatchUsingoAuth() { Dictionary <OperationEnum, object> batchEntries = new Dictionary <OperationEnum, object>(); TemplateName existing = Helper.FindOrAdd(qboContextoAuth, new TemplateName()); batchEntries.Add(OperationEnum.create, QBOHelper.CreateTemplateName(qboContextoAuth)); batchEntries.Add(OperationEnum.update, QBOHelper.UpdateTemplateName(qboContextoAuth, existing)); batchEntries.Add(OperationEnum.query, "select * from TemplateName"); batchEntries.Add(OperationEnum.delete, existing); ReadOnlyCollection <IntuitBatchResponse> batchResponses = Helper.BatchTest <TemplateName>(qboContextoAuth, batchEntries); int position = 0; foreach (IntuitBatchResponse resp in batchResponses) { if (resp.ResponseType == ResponseType.Exception) { Assert.Fail(resp.Exception.ToString()); } if (resp.ResponseType == ResponseType.Entity) { Assert.IsFalse(string.IsNullOrEmpty((resp.Entity as TemplateName).Id)); } else if (resp.ResponseType == ResponseType.Query) { Assert.IsTrue(resp.Entities != null && resp.Entities.Count > 0); } else if (resp.ResponseType == ResponseType.CdcQuery) { Assert.IsTrue(resp.CDCResponse != null && resp.CDCResponse.entities != null && resp.CDCResponse.entities.Count > 0); } position++; } }
public void InitializeEditor(ViewContext viewContext, ViewDataDictionary viewData) { if (Enabled && TemplateName.HasValue()) { var popupSlashes = new Regex("(?<=data-val-regex-pattern=\")([^\"]*)", RegexOptions.Multiline); var helper = new HtmlHelper <T>(viewContext, new SchedulerViewDataContainer <T>(DefaultDataItem(), viewData)); EditorHtml = helper.EditorForModel(TemplateName).ToHtmlString(); //} //else //{ // EditorHtml = helper.EditorForModel().ToHtmlString(); //} EditorHtml = popupSlashes.Replace(EditorHtml, match => { return(match.Groups[0].Value.Replace("\\", "\\\\")); }); } }
private string _export() { StringBuilder sb = new StringBuilder(); // LINE 1 sb.AppendLine(_templateDesignerVersion.QuoteWrap()); // LINE 2 sb.AppendLine(String.Format( "{0},{1},{2}", TemplateName.QuoteWrap(), TemplateOwner.QuoteWrap(), _templateOwnerType.QuoteWrap())); sb.Append(TemplateName.QuoteWrap() + ","); sb.Append(TemplateOwner.QuoteWrap() + ","); sb.AppendLine(_templateOwnerType.QuoteWrap()); // LINE 3 - FORM sb.AppendLine(String.Format( "0,0,0,{0},{1},0,1048576,\"\",\"\",\"\"", Width, Height)); // LINE 4 - TABSTRIP sb.AppendLine(String.Format( "{0},5,377,295,395,0,32,{1},{2},{3}", (_pages.Count - 1), // page 0 doesn't count PrefixContainer.DefaultString.QuoteWrap(), ("N=1|" + _tabstripItemData.Export(":")).QuoteWrap(), (":-2147483633:" + _getPageNames()).QuoteWrap())); // LINE 5 - BROWSETREE // FWST-PedsGeneral: 0,555,10,1065,610,0,4,"","N=2|I=F|S=F|B=T","" //sb.AppendLine(String.Format(""); sb.AppendLine(String.Format( "0,{0},10,{1},610,0,4,\"\",{2},\"\"", (Width / 2), (Width - 10), _browseTreeItemData.Export().QuoteWrap())); return(sb.ToString()); }
/// <summary> /// Performs enhanced record-by-record processing functionality for the cmdlet. /// </summary> protected override void ProcessRecordEx() { if (ShouldProcess($"'{Device.Name}' (ID: {Device.Id})")) { if (TemplateName != null && TemplateName.Length > 0) { var templates = client.GetDeviceTemplates(Device.Id); Template = templates.Where(template => TemplateName .Select(name => new WildcardPattern(name, WildcardOptions.IgnoreCase)) .Any(filter => filter.IsMatch(template.Name) || filter.IsMatch(template.Value)) ).ToArray(); if (Template.Length == 0) { throw new ArgumentException($"No device templates could be found that match the specified template names {string.Join(", ", TemplateName.Select(t => $"'{t}'"))}"); } } ExecuteOperation(() => client.AutoDiscover(Device.Id, Template), $"Starting Auto-Discovery on device '{Device}'"); } }
private void BindLayout() { string filePath = Decide.IsTemplateDefault(TemplateName.Trim()) ? Utils.GetTemplatePath_Default(TemplateName) : Utils.GetTemplatePath(TemplateName); DirectoryInfo dir = new DirectoryInfo(filePath + "/layouts"); StringBuilder html = new StringBuilder(); List <string> layoutList = new List <string>(); html.Append("<ul class='layoutList inactive' style='display:none;'>"); foreach (FileInfo layout in dir.GetFiles()) { string layoutName = layout.Name.Replace(".xml", ""); layoutList.Add(layoutName); html.Append("<li>"); html.Append(layoutName); html.Append("</li>"); } html.Append("</ul>"); ddlLayout.DataSource = layoutList; ddlLayout.DataBind(); ltrlayoutList.Text = html.ToString(); }
private void comboBoxTemplateExameFisico_SelectedIndexChanged(object sender, EventArgs e) { try { LimparFolowTable(); TemplateName templateName = (TemplateName)comboBoxTemplateExameFisico.SelectedItem; if (templateName.Id == 0) { return; } lstAreaItem = presenterGeneric.GetLista(new Area_Itens() { IdTemplate = templateName.Id }, Procedure.SP_GET_ITENS_TEMPLATE); Populatemplate(); } catch (Exception ex) { FrmMain.Alert(100, ex); } }
private ITemplateAction ProcessTemplate(string templateActionName) { switch (templateActionName) { case "TemplateEmbedded": { return(new LoadEmbeddedTemplateAction(TemplateName.ToString())); } case "TemplateFile": { return(new LoadFileTemplateAction(TemplateFilepath)); } case "TemplateString": { return(new LoadStringTemplateAction(TemplateString)); } default: throw new ArgumentException("Invalid ParameterSet Name"); } }
public TemplateName CompileAnonTemplate(TemplateName enclosingTemplateName, ITokenStream input, IList<IToken> ids, RecognizerSharedState state) { TemplateCompiler c = new TemplateCompiler(); c.Compile(input, state); return null; }
public TemplateName PrefixedName(TemplateName t) { if (t == null) return null; return TemplateName.Combine(gen.TemplateReferencePrefix, t); }
public TemplateName CompileRegion(TemplateName enclosingTemplateName, string regionName, ITokenStream input, RecognizerSharedState state) { TemplateCompiler c = new TemplateCompiler(templatePathPrefix, enclosingTemplateName); CompiledTemplate sub = c.Compile(input, state); TemplateName fullName = TemplateName.Combine(templatePathPrefix, TemplateGroup.GetMangledRegionName(enclosingTemplateName, regionName)); sub.isRegion = true; sub.regionDefType = Template.RegionType.Embedded; sub.Name = fullName; if (code.implicitlyDefinedTemplates == null) { code.implicitlyDefinedTemplates = new List<CompiledTemplate>(); } code.implicitlyDefinedTemplates.Add(sub); return fullName; }
public static UDT.CSConfiguration GetTemplate(TemplateName key) { List<string> keys = new List<string>() { "email_sender", "cs_final_message", "email_content1_template", "email_content2_template", "cs_cancel1_content_template", "cs_cancel2_content_template", "core_dropout_content_template", "teacher_score_input_explanation_template", "teacher_score_upload_reminder_template" }; return getConf(keys.ElementAt((int)key), ""); }
private void SaveAsTemplate() { TemplateName form = new TemplateName(); if(form.ShowDialog() == DialogResult.OK) { FilterStoreItem item = new FilterStoreItem(); item.Name = form.Name.Text; item.Filter = (FileFilter)fileFilter.Clone(); _options.FilterStore.Add(item); SDOptionsFile.TrySaveOptions(_options); LoadTemplates(); } }
public TemplateParser(ITokenStream input, ICodeGenerator gen, TemplateName enclosingTemplateName) : this(input, new RecognizerSharedState(), gen, enclosingTemplateName) { }
public void DefineBlankRegion(TemplateName name) { if (name == null) throw new ArgumentNullException(); if (!name.IsRooted) throw new ArgumentException(); // TODO: combine with CompileRegion CompiledTemplate blank = new CompiledTemplate() { isRegion = true, regionDefType = Template.RegionType.Implicit, Name = name }; if (code.implicitlyDefinedTemplates == null) code.implicitlyDefinedTemplates = new List<CompiledTemplate>(); code.implicitlyDefinedTemplates.Add(blank); }
public TemplateCompiler(TemplateName templatePathPrefix, TemplateName enclosingTemplateName) { this.templatePathPrefix = templatePathPrefix; this.enclosingTemplateName = enclosingTemplateName; }
public TemplateName CompileRegion(TemplateName enclosingTemplateName, string regionName, ITokenStream input, RecognizerSharedState state) { TemplateCompiler c = new TemplateCompiler(); c.Compile(input, state); return null; }
public void DefineBlankRegion(TemplateName fullyQualifiedName) { }
public TemplateName CompileAnonTemplate(TemplateName enclosingTemplateName, ITokenStream input, IList<IToken> argIDs, RecognizerSharedState state) { subtemplateCount++; TemplateName name = TemplateName.Combine(templatePathPrefix, Template.SubtemplatePrefix + subtemplateCount); ITokenSource tokenSource = input.TokenSource; TemplateLexer lexer = tokenSource as TemplateLexer; int start = -1; int stop = -1; if (tokenSource != null) start = lexer.input.Index; TemplateCompiler c = new TemplateCompiler(templatePathPrefix, enclosingTemplateName); CompiledTemplate sub = c.Compile(input, state); sub.Name = name; sub.IsSubtemplate = true; if (lexer != null) { stop = lexer.input.Index; //sub.template = lexer.input.Substring(start, stop - start - 1); //Console.WriteLine(start + ".." + stop); sub.embeddedStart = start; sub.embeddedStop = stop - 1; sub.template = lexer.input.Substring(0, lexer.input.Count - 1); } if (code.implicitlyDefinedTemplates == null) code.implicitlyDefinedTemplates = new List<CompiledTemplate>(); code.implicitlyDefinedTemplates.Add(sub); if (argIDs != null) { sub.formalArguments = new Dictionary<string, FormalArgument>(); foreach (IToken arg in argIDs) { string argName = arg.Text; sub.formalArguments[argName] = new FormalArgument(argName); } } return name; }
private void BindingSelectedPage() { if (tbTemplate.SelectedPage == radPageViewPage1) { ClearInput(); groupBox1.Text = "Tambah Data Kategori"; this.Text = "Kategori Surat"; tplName = TemplateName.Kategori; if (kategori == true) return; kategori = true; BindingDataGrid("kategori_surat"); } if (tbTemplate.SelectedPage == radPageViewPage2) { ClearInput(); groupBox1.Text = "Tambah Data Asal/Tujuan"; this.Text = "Asal/Tujuan Surat"; tplName = TemplateName.Kategori; if (asal == true) return; asal = true; BindingDataGrid("asal_surat"); } if (tbTemplate.SelectedPage == radPageViewPage3) { ClearInput(); groupBox1.Text = "Tambah Data Penerima"; this.Text = "Penerima"; tplName = TemplateName.Kategori; if (penerima == true) return; penerima = true; BindingDataGrid("posisi_surat"); } if (tbTemplate.SelectedPage == radPageViewPage4) { ClearInput(); groupBox1.Text = "Tambah Data Tingkat Keamanan"; this.Text = "Tingkat Keamanan"; tplName = TemplateName.Kategori; if (tk_keamanan == true) return; tk_keamanan = true; BindingDataGrid("tingkat_keamanan"); } if (tbTemplate.SelectedPage == radPageViewPage5) { ClearInput(); groupBox1.Text = "Tambah Data Lokasi Fisik"; this.Text = "Lokasi Fisik"; tplName = TemplateName.Kategori; if (lokasi == true) return; lokasi = true; BindingDataGrid("lokasi_fisik"); } if (tbTemplate.SelectedPage == radPageViewPage6) { ClearInput(); groupBox1.Text = "Tambah Data Jenis Pengiriman"; this.Text = "Jenis Pengiriman"; tplName = TemplateName.Kategori; if (jenis_pengiriman == true) return; jenis_pengiriman = true; BindingDataGrid("jenis_pengiriman"); } }
public static UDT.CSConfiguration GetTemplate(TemplateName key) { List<string> keys = new List<string>() { "teaching_evaluation_email_reminder_template_1", "teaching_evaluation_email_reminder_template_2", "teaching_evaluation_email_reminder_template_1_subject", "teaching_evaluation_email_reminder_template_2_subject", "teaching_evaluation_precautions" }; return getConf(keys.ElementAt((int)key), ""); }