public void Load(XmlReader xmlReader)
                    {
                        for (int i = 0; i < xmlReader.AttributeCount; i++)
                        {
                            xmlReader.MoveToAttribute(i);
                            if (xmlReader.Name == "ID")
                            {
                                this.id = int.Parse(xmlReader.GetAttribute(i));
                            }
                        }
                        do
                        {
                            xmlReader.Read();
                            if (xmlReader.Name == "IMAGE" && xmlReader.HasAttributes)
                            {
                                Image image = new Image();
                                image.Load(xmlReader);
                                this.listImage.Add(image);
                            }

                            else if (xmlReader.Name == "BUTTON" && xmlReader.HasAttributes)
                            {
                                Root_Element.Button Button = new Root_Element.Button();
                                Button.Load(xmlReader);
                                this.listButton.Add(Button);
                            }
                            else if (xmlReader.Name == "CHECKBOX" && xmlReader.HasAttributes)
                            {
                                Root_Element.CheckBox CheckBox = new Root_Element.CheckBox();
                                CheckBox.Load(xmlReader);
                                this.listCheckBox.Add(CheckBox);
                            }
                            else if (xmlReader.Name == "EDITBOX" && xmlReader.HasAttributes)
                            {
                                Root_Element.EditBox EditBox = new Root_Element.EditBox();
                                EditBox.Load(xmlReader);

                                this.listEditBox.Add(EditBox);
                            }
                            else if (xmlReader.Name == "RADIOBOX" && xmlReader.HasAttributes)
                            {
                                Root_Element.RadioBox RadioBox = new Root_Element.RadioBox();
                                RadioBox.Load(xmlReader);
                                this.listRadioBox.Add(RadioBox);
                            }
                            else if (xmlReader.Name == "RADIOBUTTON" && xmlReader.HasAttributes)
                            {
                                Root_Element.RadioButton RadioButton = new Root_Element.RadioButton();
                                RadioButton.Load(xmlReader);
                                foreach (Root_Element.RadioBox radiobox in this.listRadioBox)
                                {
                                    if (radiobox.id == RadioButton.radioboxid)
                                    {
                                        radiobox.listRadioButton.Add(RadioButton);
                                    }
                                }
                            }
                            else if (xmlReader.Name == "CAPTION" && xmlReader.HasAttributes)
                            {
                                Root_Element.Caption Caption = new Root_Element.Caption();
                                Caption.Load(xmlReader);
                                this.listCaption.Add(Caption);
                            }
                            else if (xmlReader.Name == "ZLISTBOX" && xmlReader.HasAttributes)
                            {
                                Root_Element.ZListBox ZListBox = new Root_Element.ZListBox();
                                ZListBox.Load(xmlReader);
                                this.listZListBox.Add(ZListBox);
                            }
                            else if (xmlReader.Name == "LISTBOX" && xmlReader.HasAttributes)
                            {
                                Root_Element.ListBox ListBox = new Root_Element.ListBox();
                                ListBox.Load(xmlReader);
                                this.listListBox.Add(ListBox);
                            }
                            else if (xmlReader.Name == "SCROLLBAR" && xmlReader.HasAttributes)
                            {
                                Root_Element.ScrollBar ScrollBar = new Root_Element.ScrollBar();
                                ScrollBar.Load(xmlReader);
                                this.listScrollBar.Add(ScrollBar);
                            }
                        } while (xmlReader.Name != "TAB");
                    }
        public void Load(string filePath)
        {
            this.Path = filePath;
            xmlReader = new XmlTextReader(filePath);
            xmlReader.Read();
            if (xmlReader.Name != "Root_Element")
            {
                throw new Exception("Error in the header");
            }
            root_Element = new Root_Element();
            for (int i = 0; i < xmlReader.AttributeCount; i++)
            {
                xmlReader.MoveToAttribute(i);
                if (xmlReader.Name == "X")
                {
                    root_Element.x = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "Y")
                {
                    root_Element.y = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "WIDTH")
                {
                    root_Element.width = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "HEIGHT")
                {
                    root_Element.height = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "SHOWSID")
                {
                    root_Element.showsid = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "HIDESID")
                {
                    root_Element.hidesid = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "DEFAULT_X")
                {
                    root_Element.default_x = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "DEFAULT_Y")
                {
                    root_Element.default_y = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "ADJUST_X")
                {
                    root_Element.adjust_x = int.Parse(xmlReader.GetAttribute(i));
                }
                if (xmlReader.Name == "ADJUST_Y")
                {
                    root_Element.adjust_y = int.Parse(xmlReader.GetAttribute(i));
                }
            }
            while (xmlReader.Read())
            {
                if (xmlReader.Name == "//Root_Element")
                {
                    return;
                }
                if (xmlReader.Name == "IMAGE" && xmlReader.HasAttributes)
                {
                    Root_Element.Image Image = new Root_Element.Image();
                    Image.Load(xmlReader);
                    root_Element.listImage.Add(Image);
                }

                else if (xmlReader.Name == "BUTTON" && xmlReader.HasAttributes)
                {
                    Root_Element.Button Button = new Root_Element.Button();
                    Button.Load(xmlReader);
                    root_Element.listButton.Add(Button);
                }
                else if (xmlReader.Name == "CHECKBOX" && xmlReader.HasAttributes)
                {
                    Root_Element.CheckBox CheckBox = new Root_Element.CheckBox();
                    CheckBox.Load(xmlReader);
                    root_Element.listCheckBox.Add(CheckBox);
                }
                else if (xmlReader.Name == "EDITBOX" && xmlReader.HasAttributes)
                {
                    Root_Element.EditBox EditBox = new Root_Element.EditBox();
                    EditBox.Load(xmlReader);

                    root_Element.listEditBox.Add(EditBox);
                }
                else if (xmlReader.Name == "RADIOBOX" && xmlReader.HasAttributes)
                {
                    Root_Element.RadioBox RadioBox = new Root_Element.RadioBox();
                    RadioBox.Load(xmlReader);
                    this.root_Element.listRadioBox.Add(RadioBox);
                }
                else if (xmlReader.Name == "RADIOBUTTON" && xmlReader.HasAttributes)
                {
                    Root_Element.RadioButton RadioButton = new Root_Element.RadioButton();
                    RadioButton.Load(xmlReader);
                    foreach (Root_Element.RadioBox radiobox in root_Element.listRadioBox)
                    {
                        if (radiobox.id == RadioButton.radioboxid)
                        {
                            radiobox.listRadioButton.Add(RadioButton);
                        }
                    }
                }
                else if (xmlReader.Name == "CAPTION" && xmlReader.HasAttributes)
                {
                    Root_Element.Caption Caption = new Root_Element.Caption();
                    Caption.Load(xmlReader);
                    this.root_Element.listCaption.Add(Caption);
                }
                else if (xmlReader.Name == "ZLISTBOX" && xmlReader.HasAttributes)
                {
                    Root_Element.ZListBox ZListBox = new Root_Element.ZListBox();
                    ZListBox.Load(xmlReader);
                    this.root_Element.listZListBox.Add(ZListBox);
                }
                else if (xmlReader.Name == "LISTBOX" && xmlReader.HasAttributes)
                {
                    Root_Element.ListBox ListBox = new Root_Element.ListBox();
                    ListBox.Load(xmlReader);
                    this.root_Element.listListBox.Add(ListBox);
                }
                else if (xmlReader.Name == "SCROLLBAR" && xmlReader.HasAttributes)
                {
                    Root_Element.ScrollBar ScrollBar = new Root_Element.ScrollBar();
                    ScrollBar.Load(xmlReader);
                    this.root_Element.listScrollBar.Add(ScrollBar);
                }
                else if (xmlReader.Name == "TABBEDPANE" && xmlReader.HasAttributes)
                {
                    Root_Element.TabbedPanne TabbedPanne = new Root_Element.TabbedPanne();
                    TabbedPanne.Load(xmlReader);
                    this.root_Element.listTabbedPanne.Add(TabbedPanne);
                }
            }

            xmlReader.Close();
        }