public static void SetLine(KeyValuePair <object, System.Drawing.Image> item, CreateSection section, Dictionary <object, List <PdfPTable> > pdfPTables) { Paragraph elements = new Paragraph(); int parkingNumber = 0; section.AddText(FontPolish("Dokładne Dane:")); foreach (var table in pdfPTables) { if (table.Key == item.Key) { foreach (var tab in table.Value) { if (parkingNumber == 0) { elements = FontPolish("Wartość liczbowa"); elements.IndentationLeft = 10f; section.AddText(elements); elements = FontPolish("Godziny przed południem:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 1) { elements = FontPolish("Godziny po południu:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 2) { elements = FontPolish("Wartość procentowa"); elements.IndentationLeft = 10f; section.AddText(elements); elements = FontPolish("Godziny przed południem:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 3) { elements = FontPolish("Godziny po południu:"); elements.IndentationLeft = 20f; section.AddText(elements); } section.AddTable(tab); parkingNumber++; } } } }
public static void Set(KeyValuePair <object, System.Drawing.Image> item, CreateSection section, Dictionary <object, List <PdfPTable> > pdfPTables) { int parkingNumber = 0; section.AddText(FontPolish("Dokładne Dane:")); foreach (var table in pdfPTables) { if (table.Key == item.Key) { foreach (var tab in table.Value) { section.AddTable(tab); parkingNumber++; } } } }
void CreateSectionList() { viewIndex = 1; sectionList = CreateSection.Create(); if (sectionList) { sectionList.sections = new List <Section>(); string relPath = AssetDatabase.GetAssetPath(sectionList); Debug.Log(relPath); EditorPrefs.SetString("ObjectPath", relPath); } //Design only Active Scene Level to avoid irregularity /* sectionList = AssetDatabase.LoadAssetAtPath($"Assets/StackyDash/Scripts/ScriptableObjects/" + SceneManager.GetActiveScene().name + ".asset", + typeof(SectionList)) as SectionList; */ }
public void Setup() { if (DeleteSection == null && CreateSection == null) { return; } using (Database database = new Database()) { if (DeleteSection != null && DeleteSection.HasTable()) { DataSet dataSet = GetDataSet(Section.SectionType.DataToDelete); database.Delete(dataSet, DeleteSection); } if (CreateSection != null && CreateSection.HasTable()) { UpdateColumnTypes(database, Section.SectionType.DataToCreate); DataSet dataSet = GetDataSet(Section.SectionType.DataToCreate); database.Insert(dataSet, CreateSection); } database.Commit(); } }
private void секцияToolStripMenuItem_Click(object sender, EventArgs e) { CreateSection?.Invoke(this, e); }
public RedirectToRouteResult CreateSection(CreateSection model) { return(this.RedirectToAction <SectionController>(c => c.Details(model.SectionId))); }