private void timerLoad_Tick(object sender, EventArgs e) { if (Loading == false) { SidebarTransition.Hide(LoadingPanel); timerLoad.Enabled = false; } }
private void btnHome_Click(object sender, EventArgs e) { MainContainer.Controls.Clear(); Reference.SummaryForm.TopLevel = true; Reference.SummaryForm.Size = new Size(842, 468); Reference.SummaryForm.AutoScroll = false; Reference.SummaryForm.Dock = DockStyle.Fill; MainContainer.Controls.Add(Reference.SummaryForm); Reference.SummaryForm.Show(); MainContainer.Visible = false; SidebarTransition.Show(MainContainer); }
private void btnSettings_Click(object sender, EventArgs e) { HideAll(); OptionsRESET(); FooterDefault(); if (bOptions == true && OptionsContainer.Visible != true && Locked == false) { Locked = true; SummaryContainer.Visible = false; SidebarTransition.Show(OptionsContainer); WorkerContainer.Visible = false; } }
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; }