Пример #1
0
        private void IsoDetails_DoWork(object sender, DoWorkEventArgs e)
        {
            IsoDetailsPlatform xbox;
            if (e.Argument == null)
            {
                throw new ArgumentNullException("A populated instance of IsoDetailsArgs must be passed.");
            }
            this.args = (IsoDetailsArgs) e.Argument;
            if (this.openIso())
            {
                if (this.iso.Exists("default.xex"))
                {
                    xbox = IsoDetailsPlatform.Xbox360;
                    goto Label_007E;
                }
                if (this.iso.Exists("default.xbe"))
                {
                    xbox = IsoDetailsPlatform.Xbox;
                    goto Label_007E;
                }
                base.ReportProgress(0, new IsoDetailsResults(IsoDetailsResultsType.Error, "Could not locate default.xex or default.xbe."));
            }
            return;
        Label_007E:
            switch (xbox)
            {
                case IsoDetailsPlatform.Xbox:
                    this.readXbe(e);
                    return;

                case IsoDetailsPlatform.Xbox360:
                    this.readXex(e);
                    return;
            }
        }
Пример #2
0
        private void IsoDetails_DoWork(object sender, DoWorkEventArgs e)
        {
            IsoDetailsPlatform xbox;

            if (e.Argument == null)
            {
                throw new ArgumentNullException("A populated instance of IsoDetailsArgs must be passed.");
            }
            this.args = (IsoDetailsArgs)e.Argument;
            if (this.openIso())
            {
                if (this.iso.Exists("default.xex"))
                {
                    xbox = IsoDetailsPlatform.Xbox360;
                    goto Label_007E;
                }
                if (this.iso.Exists("default.xbe"))
                {
                    xbox = IsoDetailsPlatform.Xbox;
                    goto Label_007E;
                }
                base.ReportProgress(0, new IsoDetailsResults(IsoDetailsResultsType.Error, "Could not locate default.xex or default.xbe."));
            }
            return;

Label_007E:
            switch (xbox)
            {
            case IsoDetailsPlatform.Xbox:
                this.readXbe(e);
                return;

            case IsoDetailsPlatform.Xbox360:
                this.readXex(e);
                return;
            }
        }
Пример #3
0
 public IsoDetails(IsoDetailsArgs arguments)
 {
     args = arguments;
 }