Esempio n. 1
0
        public WindowControl(){

            listMainWindows = new Dictionary<string, MainWindow>();
            windows = new Windows();
            deserializeWindows();
            foreach (string window in windows.listWindows) {
                addWindow(window);
            }
        }
Esempio n. 2
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");
 }