示例#1
0
 private void ReadImage(Resco.Controls.CommonControls.TabPage anItem, XmlReader reader)
 {
     try
     {
         if (reader.Name == "Image")
         {
             Bitmap bitmap = TabControlConversion.ImageFromString(reader["Data"]);
             this.m_Conversion.SetProperty(anItem, reader["Name"], bitmap);
         }
     }
     catch (Exception)
     {
     }
 }
示例#2
0
        private void ReadTabControl(XmlReader reader)
        {
            this.m_Conversion = new TabControlConversion(this.Site, this._designTimeCallback);
            try
            {
                if (reader.HasAttributes)
                {
                    while (reader.MoveToNextAttribute())
                    {
                        try
                        {
                            this.m_Conversion.SetProperty(this, reader.Name, reader.Value);
                            continue;
                        }
                        catch
                        {
                            continue;
                        }
                    }
                    reader.MoveToElement();
                }
                if (this._designTimeCallback != null)
                {
                    this._designTimeCallback(this.m_tabPages, null);
                }
                this.m_tabPages.Clear();
                if (!reader.IsEmptyElement)
                {
                    goto Label_016F;
                }
                return;

Label_0082:
                try
                {
                    string name = reader.Name;
                    if (name != null)
                    {
                        int num;
                        if (BigHas.methodxxx.TryGetValue(name, out num))//if (<PrivateImplementationDetails>{5BFC582E-3A05-4130-8F3B-BAA3770C919A}.$$method0x6000126-1.TryGetValue(name, ref num))
                        {
                            switch (num)
                            {
                            case 0:
                                goto Label_016F;

                            case 1:
                                this.m_tabPages.Add(this.ReadTabPage(reader));
                                goto Label_016F;

                            case 2:
                                this.ReadImage(this, reader);
                                goto Label_016F;

                            case 3:
                                return;

                            case 4:
                                this.m_Conversion.SetProperty(this, reader["Name"], reader["Value"]);
                                goto Label_016F;
                            }
                        }
                        this.m_Conversion.SetProperty(this, reader.Name, reader.ReadString());
                    }
                }
                catch
                {
                }
Label_016F:
                if (reader.Read())
                {
                    goto Label_0082;
                }
                base.Update();
            }
            catch
            {
            }
            finally
            {
                this.m_Conversion = null;
            }
        }