Esempio n. 1
0
 // Token: 0x06001C07 RID: 7175 RVA: 0x00057E5C File Offset: 0x0005605C
 private void method_1()
 {
     if (this.stream_1 == null)
     {
         this.stream_1 = new MemoryStream();
     }
     this.stream_1.SetLength(0L);
     if (this.stream_2 == null)
     {
         this.stream_2 = new MemoryStream();
     }
     this.stream_2.SetLength(0L);
     if (this.bitmap_1 == null)
     {
         this.bitmap_1 = new Bitmap(this.bitmap_0.Width, this.bitmap_0.Height);
     }
     Class486.smethod_0(this.stream_0, this.stream_1, this.bitmap_1, new Color?(this.cSelector.SelectedColor), true, Enum14.const_3);
     this.stream_1.Position = 0L;
     this.bitmap_2          = Class486.smethod_2(this.stream_1);
     this.picSource.Image   = this.bitmap_0;
     this.picImage.Image    = this.bitmap_1;
     this.picRGB.Image      = this.bitmap_2;
     Class157.smethod_6(this.bitmap_1, this.stream_2, 100);
     this.stream_0.Position = 0L;
     this.stream_2.Position = 0L;
     this.stream_1.Position = 0L;
 }
        // Token: 0x06001CAD RID: 7341 RVA: 0x0005C870 File Offset: 0x0005AA70
        private void method_1(object state)
        {
            string text = state as string;

            if (string.IsNullOrEmpty(text))
            {
                this.class374_0.method_4(new Action <object>(this.method_4));
                this.class374_0.method_4(new Action <object>(this.method_2));
                return;
            }
            byte[] array = null;
            if (this.class132_0.Data.MultiFileData.ContainsKey(text))
            {
                Class338 @class = this.class132_0.Data.MultiFileData[text];
                array = @class.Data;
            }
            switch (Class136.smethod_4(text))
            {
            case Enum68.const_0:
                break;

            case Enum68.const_1:
                this.class374_0.method_5(new Action <object>(this.method_2), Class429.smethod_0(array, null));
                this.class374_0.method_4(new Action <object>(this.method_4));
                return;

            case Enum68.const_2:
                using (MemoryStream memoryStream = new MemoryStream(array))
                {
                    this.class374_0.method_5(new Action <object>(this.method_2), new Class429(Class486.smethod_2(memoryStream), null));
                }
                this.class374_0.method_4(new Action <object>(this.method_4));
                return;

            case Enum68.const_3:
            case Enum68.const_4:
            case Enum68.const_5:
                this.class374_0.method_5(new Action <object>(this.method_4), new Class355(text, array, null));
                this.class374_0.method_4(new Action <object>(this.method_2));
                break;

            default:
                return;
            }
        }