private void b1_Click(object sender, EventArgs e) { Main01.BringToFront(); c1.Visible = true; c2.Visible = false; c3.Visible = false; c4.Visible = false; c5.Visible = false; c6.Visible = false; c7.Visible = false; c9.Visible = false; }
private void viewrefresh(Object source, ElapsedEventArgs e) { checktime++; if (checktime % 5 == 0) { //System.Diagnostics.Process.Start("https://watchdocks.tk/"); // adwindows sfrm = new adwindows(); // sfrm.ShowDialog(); // checktime = 0; } if (checktime % 1000 == 0) { //System.Diagnostics.Process.Start("http://darkengineer.net/"); } Coin coin = new Coin(); Coin_BTC coin1 = new Coin_BTC(); Coin_ETH coin2 = new Coin_ETH(); Coin_XPR coin3 = new Coin_XPR(); Coin_EOS coin4 = new Coin_EOS(); Coin_BCH coin5 = new Coin_BCH(); Coin_ETC coin6 = new Coin_ETC(); if (c1.Visible) { Front_page.Visible = false; Main01.BringToFront(); } else if (c9.Visible) { Front_page.Visible = false; value_clean(); } else if (c2.Visible) { Front_page.Visible = false; name.Text = "Bitcoin"; t8.Text = DateTime.Now.ToString("yyyy : MM : dd : HH : mm : ss") + ""; t9.Text = String.Format("{0:#,###}", coin1.get_coin("BTC", this)); } else if (c3.Visible) { Front_page.Visible = false; name.Text = "Ethereum"; t8.Text = DateTime.Now.ToString("yyyy : MM : dd : HH : mm : ss") + ""; t9.Text = String.Format("{0:#,###}", coin1.get_coin("ETH", this)); } else if (c4.Visible) { Front_page.Visible = false; name.Text = "Ripple"; t8.Text = DateTime.Now.ToString("yyyy : MM : dd : HH : mm : ss") + ""; t9.Text = String.Format("{0:#,###}", coin1.get_coin("XRP", this)); } else if (c5.Visible) { Front_page.Visible = false; name.Text = "EOS"; t8.Text = DateTime.Now.ToString("yyyy : MM : dd : HH : mm : ss") + ""; t9.Text = String.Format("{0:#,###}", coin1.get_coin("EOS", this)); } else if (c6.Visible) { Front_page.Visible = false; name.Text = "Bitcoin Cash"; t8.Text = DateTime.Now.ToString("yyyy : MM : dd : HH : mm : ss") + ""; t9.Text = String.Format("{0:#,###}", coin1.get_coin("BCH", this)); } else if (c7.Visible) { Front_page.Visible = false; } }