public frmMain(bool isGod) { mGodMode = isGod; mWin7Taskbar = TaskbarManager.Instance; LayoutManager.Layout = Properties.Settings.Default.Layout; InitializeComponent(); }
public FrmExtract(RoGrfFile grf, string rootDir, ArrayList toExtract) { InitializeComponent(); mWin7Taskbar = TaskbarManager.Instance; mGrfFile = grf; mRootDir = rootDir; mToExtract = toExtract; mWorker = new BackgroundWorker(); mWorker.WorkerReportsProgress = true; mWorker.WorkerSupportsCancellation = true; mWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(mWorker_RunWorkerCompleted); mWorker.ProgressChanged += new ProgressChangedEventHandler(mWorker_ProgressChanged); mWorker.DoWork += new DoWorkEventHandler(mWorker_DoWork); }
public FrmMain(string[] args) { InitializeComponent(); InitializeListView(); // Win7 taskbar support mWin7Taskbar = TaskbarManager.Instance; // Window title mDefaultTitle = Text; // GRF instance settings mGrfFile.WriteBytesPerTurn = (1024 * 1024) * 20; // 20MB mBackgroundLoading.WorkerReportsProgress = true; mBackgroundLoading.WorkerSupportsCancellation = true; mBackgroundLoading.DoWork += BackgroundLoading_DoWork; mBackgroundLoading.ProgressChanged += BackgroundLoading_ProgressChanged; mBackgroundLoading.RunWorkerCompleted += BackgroundLoading_RunWorkerCompleted; mBackgroundSaving.WorkerReportsProgress = true; mBackgroundSaving.WorkerSupportsCancellation = true; mBackgroundSaving.DoWork += mBackgroundSaving_DoWork; mBackgroundSaving.ProgressChanged += mBackgroundSaving_ProgressChanged; mBackgroundSaving.RunWorkerCompleted += mBackgroundSaving_RunWorkerCompleted; mGrfFile.ItemAdded += mGrfFile_ItemAdded; mGrfFile.ItemWrite += mGrfFile_ItemWrite; mGrfFile.ProgressUpdate += mGrfFile_ProgressUpdate; SetGrfInfo(); ReloadPlugins(); // Save startup args if (args != null && args.Length >= 1 && File.Exists(args[0])) { mStartupArgs = args; } }