Beispiel #1
0
        private void ReadImageList(XmlReader reader)
        {
            try
            {
                string    sName     = reader["Name"];
                string    sRect     = reader["ImageSize"];
                ImageList imageList = this.m_Conversion.GetImageList(sName);
                if (imageList != null)
                {
                    try
                    {
                        Size size = OSBConversion.SizeFromString(sRect);
                        imageList.ImageSize = size;
                    }
                    catch
                    {
                        imageList.ImageSize = new Size(0x10, 0x10);
                    }
                    if (imageList.Images.Count > 0)
                    {
                        PropertyDescriptor descriptor = TypeDescriptor.GetProperties(imageList)["Images"];
                        ((IList)descriptor.GetValue(imageList)).Clear();
                    }
                    if (!reader.IsEmptyElement)
                    {
                        goto Label_00F6;
                    }
                }
                return;

Label_008F:
                if (reader.Name == "Image")
                {
                    Bitmap o = OSBConversion.ImageFromString(reader["Data"]);
                    if (this._designTimeCallback != null)
                    {
                        this._designTimeCallback(o, imageList);
                    }
                    else
                    {
                        imageList.Images.Add(o);
                    }
                }
                if ((reader.NodeType == XmlNodeType.EndElement) && (reader.Name == "ImageList"))
                {
                    return;
                }
Label_00F6:
                if (reader.Read())
                {
                    goto Label_008F;
                }
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
        private void ReadOutlookShortcutBar(XmlReader reader)
        {
            this.m_Conversion = new OSBConversion(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();
                }
                this.Groups.Clear();
                if (!reader.IsEmptyElement)
                {
                    goto Label_0155;
                }
                return;

Label_0068:
                try
                {
                    string name = reader.Name;
                    if (name != null)
                    {
                        int num;
                        if (BigHas.methodxxx.TryGetValue(name, out num)) //if (<PrivateImplementationDetails>{9FE615AF-0BCB-474D-9B5C-7186A6AC4242}.$$method0x60006b5-1.TryGetValue(name, ref num))
                        {
                            switch (num)
                            {
                            case 0:
                                goto Label_0155;

                            case 1:
                                this.Groups.Add(this.ReadGroup(reader));
                                goto Label_0155;

                            case 2:
                                return;

                            case 3:
                                this.m_Conversion.SetProperty(this, reader["Name"], reader["Value"]);
                                goto Label_0155;

                            case 4:
                                this.ReadImageList(reader);
                                goto Label_0155;
                            }
                        }
                        this.m_Conversion.SetProperty(this, reader.Name, reader.ReadString());
                    }
                }
                catch
                {
                }
Label_0155:
                if (reader.Read())
                {
                    goto Label_0068;
                }
                base.Update();
            }
            catch
            {
            }
            finally
            {
                this.m_Conversion = null;
            }
        }
Beispiel #3
0
        private void ReadOutlookShortcutBar(XmlReader reader)
        {
            this.m_Conversion = new OSBConversion(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();
                }
                this.Groups.Clear();
                if (!reader.IsEmptyElement)
                {
                    goto Label_0155;
                }
                return;
            Label_0068:
                try
                {
                    string name = reader.Name;
                    if (name != null)
                    {
                        int num;
                        if (BigHas.methodxxx.TryGetValue(name,out num)) //if (<PrivateImplementationDetails>{9FE615AF-0BCB-474D-9B5C-7186A6AC4242}.$$method0x60006b5-1.TryGetValue(name, ref num))
                        {
                            switch (num)
                            {
                                case 0:
                                    goto Label_0155;

                                case 1:
                                    this.Groups.Add(this.ReadGroup(reader));
                                    goto Label_0155;

                                case 2:
                                    return;

                                case 3:
                                    this.m_Conversion.SetProperty(this, reader["Name"], reader["Value"]);
                                    goto Label_0155;

                                case 4:
                                    this.ReadImageList(reader);
                                    goto Label_0155;
                            }
                        }
                        this.m_Conversion.SetProperty(this, reader.Name, reader.ReadString());
                    }
                }
                catch
                {
                }
            Label_0155:
                if (reader.Read())
                {
                    goto Label_0068;
                }
                base.Update();
            }
            catch
            {
            }
            finally
            {
                this.m_Conversion = null;
            }
        }