private void deserializeProject(string path) { XmlSerializer x = new XmlSerializer(typeof(Projekt)); var data = File.ReadAllText(path); projekt = (Projekt)x.Deserialize(new StringReader(data)); loadFilesToListView(); if (projekt.Karty.Count > 0) { pliki.SetSelected(pliki.Items.IndexOf(projekt.Karty[0].Awers), true); revers.SelectedText = projekt.Karty[0].Rewers; revers.Text = projekt.Karty[0].Rewers; } }
public PDFCreator(Projekt projekt, string file, bool duplex) { this.projekt = projekt; filePath = file; Duplex = duplex; }