public WindowControl(){

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