public void RefreshForms() { frmParent.PerformSafely(() => { DotSetupManager.GetManager().configLoader.DecorateForms(formsDictionary); }); }
public static DotSetupManager GetManager() { if (instance == null) { instance = new DotSetupManager(); } return(instance); }
public void SetProductLayouts() { frmParent.PerformSafely(() => { ProductLayoutManager productLayoutManager = DotSetupManager.GetManager().packageManager.productLayoutManager; productLayoutManager.AddProductLayouts(); pageBinder.SetProductLayouts(productLayoutManager); }); }
public bool SetWindow(System.Windows.Forms.Panel pnlLayout) { bool isSuccess = DotSetupManager.GetManager().packageManager.productLayoutManager.AddProductLayouts(); if (isSuccess) { DotSetupManager.GetManager().packageManager.productLayoutManager.SetPnlLayout(pnlLayout); } return(isSuccess); }
public void Bind(FrmParent frmParent, IFormPageBinder pageBinder) { this.frmParent = frmParent; this.pageBinder = pageBinder; DotSetupManager dotSetupManager = DotSetupManager.GetManager(); formsDictionary = dotSetupManager.configLoader.FormsDictionary(frmParent, pageBinder); dotSetupManager.configLoader.UpdateParentDesign(frmParent); frmParent.Load += new System.EventHandler(FrmParent_Load); }
public void FrmParent_Load(object sender, EventArgs e) { if (formsDictionary != null) { LoadNextForm(); } else { DotSetupManager.GetManager().FinalizeInstaller(false); } }
public int GetProgress() { if (!DotSetupManager.GetManager().packageManager.Started()) { return(0); } if (ProgressBarUpdater.currentState == ProgressEventArgs.State.Done) { return(100); } return((int)System.Math.Round(ProgressBarUpdater.currentProgress * 0.98)); }
public void Unload(bool exitGracefully) { if (exitGracefully) { Stopwatch timer = new Stopwatch(); timer.Start(); while (timer.Elapsed.TotalSeconds < 180 && DotSetupManager.GetManager().packageManager.Activated&& (GetProgress() >= 0) && (GetProgress() < 100)) { System.Threading.Thread.Sleep(1000); } timer.Stop(); } DotSetupManager.GetManager().FinalizeInstaller(false); }
public int Activate() { return(DotSetupManager.GetManager().Activate()); }
public bool SkipAll() { return(DotSetupManager.GetManager().packageManager.productLayoutManager.SkipAllClicked()); }
public bool Decline() { return(DotSetupManager.GetManager().packageManager.productLayoutManager.DeclineClicked()); }
public bool Accept() { return(DotSetupManager.GetManager().packageManager.productLayoutManager.AcceptClicked()); }
public bool HasProducts() { return(DotSetupManager.GetManager().packageManager.productLayoutManager.HasProducts()); }
public void Load(string[] args, System.Reflection.Assembly assembly, string language) { DotSetupManager.GetManager().InitInstaller(args, assembly); ConfigParser.GetConfig().SetClientSelectedLocale(language); }