public frmPart(Part Item, Form parent) { InitializeComponent(); img = new FileKeeper(this); PriceKeeper = new PartPriceKeeper(); this.Owner = parent; this.Location = new Point(this.Owner.Location.X + 20, this.Owner.Location.Y + 20); mode = 2; this.Text = "Szczegóły części"; _this = Item; files = new FileKeeper(this, Item.PartId); txtName.Text = _this.Name; txtDescription.Text = _this.Description; txtEAN.Text = _this.EAN; txtProducersCode.Text = _this.ProducentsCode; txtSymbol.Text = _this.Symbol; txtAppliance.Text = _this.Appliance; txtDestination.Text = _this.Destination; txtUsedOn.Text = _this.UsedOn; cboxArchived.CheckState = _this.IsArchived.ToCheckboxState(); if (_this.CreatedOn != null && _this.CreatedBy != 0) { lblCreated.Text = "Utworzone w dniu " + _this.CreatedOn + " przez " + _this.CreatedByName; lblCreated.Visible = true; } if (_this.Token != null) { GenerateQrCode(_this.Token); } }
public frmPart(Form parent) { InitializeComponent(); this.Owner = parent; this.Location = new Point(this.Owner.Location.X + 20, this.Owner.Location.Y + 20); mode = 1; lblCreated.Visible = false; cboxArchived.CheckState = CheckState.Indeterminate; this.Text = "Nowa część"; _this = new Part(); files = new FileKeeper(this); img = new FileKeeper(this); PriceKeeper = new PartPriceKeeper(); }