public void LoadAllWindows()
        {
            _windows.Clear();

            foreach (XElement element in XmlController.Instance.GetAllWindowElements())
            {
                string title = element.Attribute("title").Value;
                InvokeStructs.RECT rect = new InvokeStructs.RECT
                {
                    Top = Convert.ToInt16(element.Attribute("top").Value),
                    Right = Convert.ToInt16(element.Attribute("right").Value),
                    Bottom = Convert.ToInt16(element.Attribute("bottom").Value),
                    Left = Convert.ToInt16(element.Attribute("left").Value)
                };

                _windows.Add(new ProgramWindow(title, rect));
            }
            Notify();
        }
Beispiel #2
0
 public ProgramWindow(string windowTitle, InvokeStructs.RECT windowRect)
 {
     WindowTitle = windowTitle;
     WindowRect = windowRect;
 }