Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the ExtractProgress class.
        /// </summary>
        /// <param name="baseFolder">Base extraction folder for TQ database</param>
        public ExtractProgress(IArcFileProvider arcFileProvider, IArzFileProvider arzFileProvider, IDBRecordCollectionProvider dBRecordCollectionProvider)
        {
            this.arcProv = arcFileProvider;
            this.arzProv = arzFileProvider;
            this.DBRecordCollectionProvider = dBRecordCollectionProvider;
            this.InitializeComponent();

            this.Text              = Resources.ARZProgressText;
            this.label1.Text       = Resources.ARZProgressLabel1;
            this.cancelButton.Text = Resources.GlobalCancel;

            // Set options for Right to Left reading.
            if (CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft)
            {
                rightToLeftOptions = MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading;
            }
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the Form1 class.
        /// </summary>
        public Form1(IArcFileProvider arcFileProvider, IArzFileProvider arzFileProvider, IDBRecordCollectionProvider dBRecordCollectionProvider, IBitmapService bitmapService)
        {
            this.InitializeComponent();
            Assembly     a     = Assembly.GetExecutingAssembly();
            AssemblyName aname = a.GetName();

            this.arcProv = arcFileProvider;
            this.arzProv = arzFileProvider;
            this.DBRecordCollectionProvider = dBRecordCollectionProvider;
            this.BitmapService = bitmapService;
            this.titleText     = aname.Name;
            this.selectedFileToolStripMenuItem.Enabled = false;
            this.allFilesToolStripMenuItem.Enabled     = false;
            fileType         = CompressedFileType.Unknown;
            this.initialSize = this.Size;
            this.gutter      = this.initialSize.Width - this.textBox1.Width - this.treeView1.Width;
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the Form1 class.
        /// </summary>
        public MainForm(ILogger <MainForm> log, IArcFileProvider arcFileProvider, IArzFileProvider arzFileProvider, IDBRecordCollectionProvider dBRecordCollectionProvider, IBitmapService bitmapService)
        {
            this.InitializeComponent();

            Assembly     a     = Assembly.GetExecutingAssembly();
            AssemblyName aname = a.GetName();

            this.Log     = log.Logger;
            this.arcProv = arcFileProvider;
            this.arzProv = arzFileProvider;
            this.DBRecordCollectionProvider = dBRecordCollectionProvider;
            this.BitmapService = bitmapService;
            this.titleText     = aname.Name;
            this.selectedFileToolStripMenuItem.Enabled = false;
            this.allFilesToolStripMenuItem.Enabled     = false;
            fileType         = CompressedFileType.Unknown;
            this.initialSize = this.Size;
        }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the Database class.
 /// </summary>
 public Database(
     ILogger <Database> log
     , IArcFileProvider arcFileProvider
     , IArzFileProvider arzFileProvider
     , IItemAttributeProvider itemAttributeProvider
     , IGamePathService gamePathResolver
     , ITQDataService tQData
     )
 {
     this.Log = log;
     this.AutoDetectLanguage    = Config.Settings.Default.AutoDetectLanguage;
     this.TQLanguage            = Config.Settings.Default.TQLanguage;
     this.arcProv               = arcFileProvider;
     this.arzProv               = arzFileProvider;
     this.ItemAttributeProvider = itemAttributeProvider;
     this.GamePathResolver      = gamePathResolver;
     this.TQData = tQData;
     this.LoadDBFile();
 }