Ejemplo n.º 1
0
        private void frmSearchWizard_FormClosing(object sender, FormClosingEventArgs e)
        {
            Settings Stngs = new Settings();

            Stngs.Heigh     = this.Height;
            Stngs.Width     = this.Width;
            Stngs.LocationX = this.Location.X;
            Stngs.LocationY = this.Location.Y;
            XMLSerializer.SerializeObject <Settings>(Stngs, "Settings.xml");
            TreeViewSerializer saveTreeView = new TreeViewSerializer();

            saveTreeView.SerializeTreeView(treeView1, "Suchordner.xml");
        }
Ejemplo n.º 2
0
 private void frmSearchWizard_Load(object sender, EventArgs e)
 {
     try
     {
         Settings Stngs = XMLSerializer.DeSerializeObject <Settings>("Settings.xml");
         this.Height   = Stngs.Heigh;
         this.Width    = Stngs.Width;
         this.Location = new Point(Stngs.LocationX, Stngs.LocationY);
         TreeViewSerializer saveTreeView = new TreeViewSerializer();
         saveTreeView.DeserializeTreeView(treeView1, "Suchordner.xml");
     }
     catch (System.Exception)
     {
         //
     }
 }