private void CreateStaffelDescrandPictureBackgroundWorkerDoEvent(object sender, DoWorkEventArgs e) { string Text = (string)e.Argument; SelectedSerie = SerienListe.Find(x => x.SerienName == Text.Replace(" ", "-")); if (SelectedSerie.ImageLink == null || SelectedSerie.Staffeln == null || SelectedSerie.Description == null) { Serie s = MyManager.LoadStaffel(SelectedSerie); if (s == null) { MessageBox.Show("Die Serie konnte leider nicht Geladen werden"); backbtn.Invoke((MethodInvoker)(() => backbtn.PerformClick())); (sender as BackgroundWorker).CancelAsync(); return; } SerienListe[SerienListe.IndexOf(SelectedSerie)] = s; SelectedSerie = s; } for (int i = 0; i < SelectedSerie.Staffeln.Count; i++) { StaffelItem sf = new StaffelItem(SelectedSerie.Staffeln[i].StaffelName) { Location = new Point(5, i * 60 + 10) }; sf.Controls.Find("panel1", true)[0].Click += StaffelAuswahlClick; sf.Controls.Find("label1", true)[0].Click += StaffelAuswahlClick; panel1.Invoke((MethodInvoker)(() => panel1.Controls.Add(sf))); } //CoverPB.Invoke((MethodInvoker)(() => CoverPB.Load(SelectedSerie.ImageLink.AbsoluteUri))); DescriptionTB.Invoke((MethodInvoker)(() => DescriptionTB.Text = SelectedSerie.Description)); }
private void ShowDescription(object sender, ComponentWrapper component) { if (sender == _treeView) { ReferenceData refData = this.References[component]; DescriptionTB.Clear(); if (refData.Wrapper is FeatureWrapper) { ShowDescription(refData.Wrapper as FeatureWrapper); } if (refData.Wrapper is LibraryWrapper) { ShowDescription(refData.Wrapper as LibraryWrapper); } if (refData.Wrapper is LibraryCategoryWrapper) { ShowDescription(refData.Wrapper as LibraryCategoryWrapper); } SetupTree(_dependTreeView, InventoryBrowserModel.GetModel(this.References.GetDependsFrom(component)), true); SetupTree(_referencedByTreeView, InventoryBrowserModel.GetModel(this.References.GetRequiredBy(component)), true); } else { //_treeView.SetSelectedComponent(component); } }
private void ShowDescription(ProjectWrapper project) { DescriptionTB.Clear(); DescriptionTB.AppendText("Name: " + project.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(project.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(project.Description + "\r\n\r\n"); }
void ReleaseDesignerOutlets() { if (AddToCartBtn != null) { AddToCartBtn.Dispose(); AddToCartBtn = null; } if (amountTxt != null) { amountTxt.Dispose(); amountTxt = null; } if (CancelBtn != null) { CancelBtn.Dispose(); CancelBtn = null; } if (DescLabel != null) { DescLabel.Dispose(); DescLabel = null; } if (DescriptionTB != null) { DescriptionTB.Dispose(); DescriptionTB = null; } if (HotDogDetailView != null) { HotDogDetailView.Dispose(); HotDogDetailView = null; } if (HotDogImageView != null) { HotDogImageView.Dispose(); HotDogImageView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (PriceLabel != null) { PriceLabel.Dispose(); PriceLabel = null; } }
public int?InsertDescription(DescriptionTB DescriptionTB) { using (var _context = new DatabaseContext()) { _context.DescriptionTB.Add(DescriptionTB); _context.SaveChanges(); int?id = DescriptionTB.DescriptionID; // Yes it's here return(id); } }
private void ShowDescription(LibraryCategoryWrapper libcat) { DescriptionTB.AppendText("Name: " + libcat.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(libcat.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Required: " + libcat.Required + "\r\n\r\n"); //DescriptionTB.AppendText("Sulution Visible: " + LCW.IsSolutionWizardVisible + "\r\n\r\n"); DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(libcat.Description + "\r\n\r\n"); }
private void ShowDescription(LibraryCategoryWrapper Transport) { DescriptionTB.Clear(); DescriptionTB.AppendText("Name: " + Transport.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(Transport.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Is Transport:\r\n"); DescriptionTB.AppendText(Transport.IsTransport + "\r\n\r\n"); DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(Transport.Description + "\r\n\r\n"); }
private void WindowPrincipale_KeyDown(object sender, KeyEventArgs e) { if (descriptionInUse == true) { return; } else { switch (e.KeyCode) { #region key Delete case Keys.Delete: { SupprimerCartoObj(); break; } #endregion #region key & case Keys.D1: { POIButton_Click(this, new EventArgs()); break; } #endregion #region key é case Keys.D2: { PolylineButton_Click(this, new EventArgs()); break; } #endregion #region key & case Keys.D3: { PolygonButton_Click(this, new EventArgs()); break; } #endregion #region key enter case Keys.Space: { DescriptionTB.Focus(); break; } #endregion } } MainPictureBox.Invalidate(); }
private void ShowDescription(ComponentWrapper processor) { ProcessorWrapper PW = PK.Wrapper.FindProcessor(processor.Guid); DescriptionTB.Clear(); if (PW != null) { DescriptionTB.AppendText("Name: " + PW.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(PW.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(PW.Description + "\r\n\r\n"); } }
private void ShowDescription(FeatureWrapper feature) { DescriptionTB.Clear(); DescriptionTB.AppendText("Name: " + feature.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(feature.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Required: " + feature.Required + "\r\n\r\n"); DescriptionTB.AppendText("Solution Wizard Visible: " + feature.IsSolutionWizardVisible + "\r\n\r\n"); if (!string.IsNullOrEmpty(feature.Filter)) { DescriptionTB.AppendText("Filter: " + feature.Filter + "\r\n\r\n"); } DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(feature.Description + "\r\n\r\n"); }
private void InsertDescriptionDetail(int?ProjectID, int TimeSheetMasterID, string Description) { try { DescriptionTB objtimesheetdetails = new DescriptionTB(); objtimesheetdetails.DescriptionID = 0; objtimesheetdetails.ProjectID = ProjectID; objtimesheetdetails.UserID = Convert.ToInt32(Session["UserID"]); objtimesheetdetails.CreatedOn = DateTime.Now; objtimesheetdetails.TimeSheetMasterID = TimeSheetMasterID; objtimesheetdetails.Description = Description; int?TimeSheetID = _ITimeSheet.InsertDescription(objtimesheetdetails); } catch (Exception) { throw; } }
public ModifyBookPage(int docID, DocumentsManagementPage page) { _docID = docID; InitializeComponent(); Document doc = SDM.LMS.GetDoc(docID); TitleTB.AppendText(doc.Title); AutorsTB.AppendText(doc.Autors); PublisherTB.AppendText(doc.Publisher); PublishYearTB.AppendText(doc.PublishYear.ToString()); EditionTB.AppendText(doc.Edition); DescriptionTB.AppendText(doc.Description); PriceTB.AppendText(doc.Price.ToString()); IsBestsellerCB.SelectedIndex = doc.IsBestseller ? 0 : 1; CopiesTB.AppendText(doc.Quantity.ToString()); TagsTB.AppendText(doc.Tags); prevPage = page; }
private void ShowDescription(LibraryWrapper library) { DescriptionTB.AppendText("Name: " + library.Name + "\r\n\r\n"); DescriptionTB.AppendText("Project Path:\r\n"); DescriptionTB.AppendText(library.ProjectPath + "\r\n\r\n"); DescriptionTB.AppendText("Required: " + library.Required + "\r\n\r\n"); if (!string.IsNullOrEmpty(library.CustomFilter)) { DescriptionTB.AppendText("Custom Filter: " + library.CustomFilter + "\r\n\r\n"); } if (library.ProcessorSpecific != null) { if (!string.IsNullOrEmpty(library.ProcessorSpecific.Name)) { DescriptionTB.AppendText("Processor Specific: " + library.ProcessorSpecific.Name + "\r\n\r\n"); } } //DescriptionTB.AppendText("Sulution Visible: " + LCW.IsSolutionWizardVisible + "\r\n\r\n"); DescriptionTB.AppendText("Description:\r\n"); DescriptionTB.AppendText(library.Description + "\r\n\r\n"); }
private void ClearBTN_Click(object sender, RoutedEventArgs e) { TermTB.Clear(); DescriptionTB.Clear(); }