Ejemplo n.º 1
0
 private void btnComptes_Click(object sender, EventArgs e)
 {
     frmComptes fComptes = new frmComptes();
     fComptes.ShowDialog(this);
     LoadAccounts();
 }
Ejemplo n.º 2
0
        public void Init()
        {
            //

            //webBrowser1.Url = new Uri(Program.htmlpageurl);

            if (Config.GetRefreshSkin())
            {
                foreach(string file in Directory.GetFiles(DTC.Common.Paths.GetTempPath(),"*.png"))
                {
                    string test = file;

                    try
                    {
                        File.Delete(file);
                    }
                    catch (Exception E)
                    {
                        string tutu = "p";
                    }

                }

                Config.SetRefreshSkin(false);

            }

            if (Config.GetShowAds())
            {
                webBrowser1.Url = new Uri("http://www.danstoncube.com/twitter_ads/");
                webBrowser1.AllowNavigation = true;
            }
            else
            {
                webBrowser1.Url = new Uri("http://www.danstoncube.com/twitter/");
                //webBrowser1.AllowNavigation = false;
            }

            if (!Config.GetSimple())
            {
                cboPackages.Visible = true;
                btnPackages.Visible = true;
                lblPackages.Visible = true;
            }
            else
            {
                this.Height -= (cboPackages.Height + (cboServeurs.Top - cboComptes.Top - cboComptes.Height));
            }

            bckCheckOnline.RunWorkerAsync();

            this.Show();

            LoadPackages();
            LoadTools();
            LoadServeurs();

            bool testAccount = Program.CheckAccount();
            if (!testAccount)
            {
                MessageBox.Show(this, "Vous n'avez pas configuré de compte, ouverture de la configuration des comptes.");
                frmComptes fComptes = new frmComptes();
                fComptes.ShowDialog(this);
            }

            LoadAccounts();

            //
            bckCheckUpdate.RunWorkerAsync();
            //loading = false;
        }