コード例 #1
0
ファイル: DeviceImage.cs プロジェクト: tapickell/SharpTune
        /// <summary>
        /// Constructor
        /// </summary>
        ///
        public DeviceImage(string fPath)
        {
            FileInfo f = new FileInfo(fPath);

            this.FileSize      = f.Length;
            this.FileName      = f.Name;
            this.FilePath      = fPath;
            this.FileDirectory = fPath.Replace(f.Name, "");

            TryOpenRom(fPath);

            if (this.CalId == null)
            {
                UndefinedWindow uw = new UndefinedWindow(fPath);
                uw.ShowDialog();
                TryOpenRom(fPath);
            }
        }
コード例 #2
0
ファイル: ECU.cs プロジェクト: SubiSam/SharpTune
        /// <summary>
        /// Constructor
        /// </summary>
        ///
        public ECU(SharpTuner st, string fPath)
        {
            sharpTuner = st;
            FileInfo f = new FileInfo(fPath);

            this.FileSize      = f.Length;
            this.FileName      = f.Name;
            this.FilePath      = fPath;
            this.FileDirectory = fPath.Replace(f.Name, "");

            TryOpenRom(fPath);

            if (this.CalId == null)
            {
                UndefinedWindow uw = new UndefinedWindow(sharpTuner, fPath);
                uw.ShowDialog();
                TryOpenRom(fPath);
            }
        }