Example #1
0
        protected virtual void ReadProperties(ObjectReader reader, XmlElement elem)
        {
            if (Wrapped != null)
            {
                // There is already an instance. Load the default values.
                this.ClassDescriptor.ResetInstance(Wrapped);
                Signals.Clear();
            }

            if (reader.Format == FileFormat.Native)
            {
                WidgetUtils.Read(this, elem);
            }
            else
            {
                GladeUtils.ImportWidget(this, elem);
            }

            string uid = elem.GetAttribute("undoId");

            if (uid.Length > 0)
            {
                UndoId = uid;
            }
            oldName = Wrapped.Name;
        }