public Masina(PlainText model, int anFabricatie, CIV civ, SerieSasiu serieSasiu) { Model = model; this.anFabricatie = anFabricatie; this.civ = civ; this.serieSasiu = serieSasiu; }
public ComandaMvc(PlainText numeMecanic, int idMecanic, PlainText numeClient, int idClient, IDComanada iDComanda, PlainText modelMasina, int anFabricatie, CIV civ, SerieSasiu serie, string cerereClient) { this.mecanic.nume = numeMecanic; this.mecanic.idMecanic = idMecanic; this.client.nume = numeClient; this.client.idClient = idClient; this.iDComanda = iDComanda; this.masina.Model = modelMasina; this.masina.anFabricatie = anFabricatie; this.masina.civ = civ; this.masina.serieSasiu = serie; this.cerereClient = cerereClient; this.stareComanda = StareComanda.Creeata; this.evaluareMecanic = new List <string>(); this.cost = 0; }
private void OnDownloadProgress(object sender, CIV.Common.DownloadProgressEventArgs e) { Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new ThreadStart(delegate { if (pbDownload.Maximum != e.File.Size) pbDownload.Maximum = e.File.Size; if (String.IsNullOrEmpty(_setup)) _setup = e.File.Filename; pbDownload.Value = e.Downloaded; lblDownload.Content = String.Format("{0} / {1}", Common.UnitsConverter.SIUnitToString(Convert.ToDouble(e.Downloaded) / 1024, SIUnitTypes.ko), Common.UnitsConverter.SIUnitToString(Convert.ToDouble(e.File.Size) / 1024, SIUnitTypes.ko)); })); }