Пример #1
0
 private void ReadImage(ToolbarItem anItem, XmlReader reader)
 {
     try
     {
         if (reader.Name == "Image")
         {
             Bitmap bitmap = ToolbarConversion.ImageFromString(reader["Data"]);
             this.m_Conversion.SetProperty(anItem, reader["Name"], bitmap);
         }
     }
     catch (Exception)
     {
     }
 }
Пример #2
0
        private void ReadToolbarControl(XmlReader reader)
        {
            this.m_Conversion = new ToolbarConversion(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_ToolbarItems, null);
                }
                this.m_ToolbarItems.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}.$$method0x60000b9-1.TryGetValue(name, ref num))
                        {
                            switch (num)
                            {
                            case 0:
                                goto Label_016F;

                            case 1:
                                this.m_ToolbarItems.Add(this.ReadToolbarItem(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;
            }
        }
Пример #3
0
        private void ReadToolbarControl(XmlReader reader)
        {
            this.m_Conversion = new ToolbarConversion(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_ToolbarItems, null);
                }
                this.m_ToolbarItems.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}.$$method0x60000b9-1.TryGetValue(name, ref num))
                        {
                            switch (num)
                            {
                                case 0:
                                    goto Label_016F;

                                case 1:
                                    this.m_ToolbarItems.Add(this.ReadToolbarItem(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;
            }
        }