Exemple #1
0
 public void RefreshForms()
 {
     frmParent.PerformSafely(() =>
     {
         DotSetupManager.GetManager().configLoader.DecorateForms(formsDictionary);
     });
 }
Exemple #2
0
 public static DotSetupManager GetManager()
 {
     if (instance == null)
     {
         instance = new DotSetupManager();
     }
     return(instance);
 }
Exemple #3
0
 public void SetProductLayouts()
 {
     frmParent.PerformSafely(() =>
     {
         ProductLayoutManager productLayoutManager = DotSetupManager.GetManager().packageManager.productLayoutManager;
         productLayoutManager.AddProductLayouts();
         pageBinder.SetProductLayouts(productLayoutManager);
     });
 }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
 public void FrmParent_Load(object sender, EventArgs e)
 {
     if (formsDictionary != null)
     {
         LoadNextForm();
     }
     else
     {
         DotSetupManager.GetManager().FinalizeInstaller(false);
     }
 }
Exemple #7
0
 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));
 }
Exemple #8
0
 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);
 }
Exemple #9
0
 public int Activate()
 {
     return(DotSetupManager.GetManager().Activate());
 }
Exemple #10
0
 public bool SkipAll()
 {
     return(DotSetupManager.GetManager().packageManager.productLayoutManager.SkipAllClicked());
 }
Exemple #11
0
 public bool Decline()
 {
     return(DotSetupManager.GetManager().packageManager.productLayoutManager.DeclineClicked());
 }
Exemple #12
0
 public bool Accept()
 {
     return(DotSetupManager.GetManager().packageManager.productLayoutManager.AcceptClicked());
 }
Exemple #13
0
 public bool HasProducts()
 {
     return(DotSetupManager.GetManager().packageManager.productLayoutManager.HasProducts());
 }
Exemple #14
0
 public void Load(string[] args, System.Reflection.Assembly assembly, string language)
 {
     DotSetupManager.GetManager().InitInstaller(args, assembly);
     ConfigParser.GetConfig().SetClientSelectedLocale(language);
 }