Beispiel #1
0
 private void btnSizeChange_Click(object sender, EventArgs e)
 {
     if (this.WindowState != FormWindowState.Maximized)
     {
         LoadingPanel.BringToFront();
         LoadingPanel.Visible     = true;
         this.Visible             = false;
         LoadingCalc.LoadingValue = 0;
         Loading           = true;
         timerLoad.Enabled = true;
         SidebarTransition.MaxAnimationTime = 500;
         SidebarTransition.TimeStep         = Convert.ToSingle(0.09);
         this.WindowState = FormWindowState.Maximized;
         MaximizeBox();
         btnCompress.Visible      = true;
         btnMaximize.Visible      = false;
         PageLeft.Size            = new Size(55, 523);
         PageRight.Size           = new Size(55, 523);
         PageLeftShadow.Size      = new Size(55, 16);
         PageRightShadow.Size     = new Size(55, 16);
         PageRightShadow.Location = new Point(PageRightShadow.Location.X - 24, PageRightShadow.Location.Y);
         this.CenterToScreen();
         this.Visible = true;
     }
     else
     {
         LoadingPanel.BringToFront();
         LoadingPanel.Visible     = true;
         LoadingCalc.LoadingValue = 0;
         Loading           = true;
         timerLoad.Enabled = true;
         SidebarTransition.MaxAnimationTime = 1500;
         SidebarTransition.TimeStep         = Convert.ToSingle(0.02);
         PageLeft.Size            = new Size(31, 523);
         PageRight.Size           = new Size(31, 523);
         PageLeftShadow.Size      = new Size(31, 16);
         PageRightShadow.Size     = new Size(31, 16);
         PageRightShadow.Location = new Point(PageRightShadow.Location.X + 24, PageRightShadow.Location.Y);
         timerMinimize.Enabled    = true;
     }
 }
Beispiel #2
0
        private void Crypto_Load(object sender, EventArgs e)
        {
            LoadingPanel.Controls.Clear();
            Reference.LoadingForm.TopLevel   = false;
            Reference.LoadingForm.Size       = new Size(843, 520);
            Reference.LoadingForm.AutoScroll = false;
            Reference.LoadingForm.Dock       = DockStyle.Fill;
            LoadingPanel.Controls.Add(Reference.LoadingForm);
            Reference.LoadingForm.Show();
            LoadingPanel.BringToFront();

            SummaryContainer.Controls.Clear();
            Reference.SummaryForm.TopLevel   = false;
            Reference.SummaryForm.Size       = new Size(843, 520);
            Reference.SummaryForm.AutoScroll = false;
            Reference.SummaryForm.Dock       = DockStyle.Fill;
            SummaryContainer.Controls.Add(Reference.SummaryForm);
            Reference.SummaryForm.Show();

            WorkerContainer.Controls.Clear();
            Reference.WorkerForm.TopLevel   = false;
            Reference.WorkerForm.Size       = new Size(843, 520);
            Reference.WorkerForm.AutoScroll = false;
            Reference.WorkerForm.Dock       = DockStyle.Fill;
            WorkerContainer.Controls.Add(Reference.WorkerForm);
            Reference.WorkerForm.Show();

            OptionsContainer.Controls.Clear();
            Reference.OptionsForm.TopLevel = false;
            Reference.OptionsForm.Size     = new Size(843, 520);
            Reference.OptionsForm.Dock     = DockStyle.Fill;
            OptionsContainer.Controls.Add(Reference.OptionsForm);
            Reference.OptionsForm.Show();

            Options.ProfileLoaded = false;                      //PLACEHOLDER. | Will Implement Guest Login Screen.
            Options.Profile       = 0;                          //PLACEHOLDER. | Taken from Login Screen.
            Options.CreateMustFiles();                          //Make sure all required files exist.
            Reference.OptionsForm.LoadProfile(Options.Profile); //Load Profile Number.
            Reference.OptionsForm.TestCoinSummary();            //Test if txt file has valid coins and assign them to varaibles.
            //        Reference.OptionsForm.OpPagev.selectedIndex = Convert.ToInt32(Options.PageNumber);  //Setting Page Index to Saved Page Number on txt file.
            //Reference.OptionsForm.lblSaveFoundVisible = false;                    //Not Required on first startup.

            //Reference.WorkerForm.GETWallets();       //MINING | Gets All Wallet Info.
            //Reference.WorkerForm.GETPools();         //MINING | Gets All Available Pools.
            //Reference.WorkerForm.SetDefault();       //MINING | Set Default Worker Settings.
            //Reference.WorkerForm.GETWorkerInfo();    //MINING | Get ALL Relevant Mining Info

            SummaryRESET();              //Populate the Summary Page with Data.
            FooterDefault();             //HIDE all header properties except default ones.
            intSyncTimer = 31;           //On first countdown users sees it counting down from 30.
            GETINFOSummary();            //Getting ALL API Information.

            //Correct Programs Sizing and Location.
            Footer.Location = new Point(222, 539);
            this.Size       = new Size(1135, 640);
            this.CenterToScreen();

            //Set Home as default and hide compress button.
            btnHome.selected    = true;
            btnCompress.Visible = false;

            //Loading Screen | Default Summary Page.
            Loading = true;
            LoadingPanel.BringToFront();
            SidebarTransition.Show(LoadingPanel);
            SummaryContainer.Visible = true;
            WorkerContainer.Visible  = false;
            OptionsContainer.Visible = false;

            //Page Turner Settings.
            PageLeft.GradientTopLeft   = Color.White;
            PageRight.GradientTopRight = Color.White;
            PageLeftShadow.Visible     = false;
            PageRightShadow.Visible    = false;
        }