Exemplo n.º 1
0
        private void deserializeWindows()
        {
            Windows newWindows = null;

            if (File.Exists(Constants.CONFIGPATH + "Windows.xml"))
            {
                newWindows = (Windows)XMLSerializer.deserialize(windows, Constants.CONFIGPATH + "Windows.xml");
            }
            if (newWindows != null)
            {
                windows = newWindows;
            }
            else
            {
                windows.listWindows.Add("Main");
            }
        }
Exemplo n.º 2
0
 private void serializeWindows()
 {
     XMLSerializer.serialize(windows, Constants.CONFIGPATH + "Windows.xml");
 }