Example #1
0
        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;
            }
        }
Example #2
0
        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;
            }
        }
Example #3
0
 public PDFCreator(Projekt projekt, string file, bool duplex)
 {
     this.projekt = projekt;
     filePath     = file;
     Duplex       = duplex;
 }
Example #4
0
 public PDFCreator(Projekt projekt, string file, bool duplex)
 {
     this.projekt = projekt;
     filePath = file;
     Duplex = duplex;
 }