public PackBrowser(string filename) { // Set PrgressDialog this.pd = new ProgressDialog(this.Handle); this.pd.Title = this.Name; this.pd.Caption = Properties.Resources.Str_Initialize; this.pd.Animation = 151; this.pd.ShowDialog(); InitializeComponent(); this.PackFile = filename; this.w = new Worker(false); this.d = new Dialogs(); this.isVista = (Environment.OSVersion.Version.Major >= 6) ? true : false; }
/// <summary> /// Initialize Worker Progress Window. /// </summary> /// <param name="ShowDoneMsg">Show MessageBox and Progress. (default is true)</param> public Worker(bool isCLI) { this.isCLI = isCLI; this.env = new MabiEnvironment(); this.MabiDir = env.MabinogiDir; this.isVista = (Environment.OSVersion.Version.Major >= 6) ? true : false; if (!this.isCLI) { // Set PrgressDialog this.pd = new ProgressDialog(); this.pd.Title = "MabiPacker"; this.pd.Value = 0; this.pd.Caption = Properties.Resources.Str_Initialize; } }