public MainForm() { InitializeComponent(); FullScreen.HideHHTaskBar(); this.WindowState = FormWindowState.Maximized; Config = Configuration.ReadConfig(); if (Config == null) { this.Close(); } lbl_Logo.Text = Config.ScenicSpots; pnl_Card_Yes.Visible = pnl_Card_No.Visible = pnl_Valid.Visible = pnl_Invalid.Visible = false; pnl_Card_Yes.Location = pnl_Card_No.Location = pnl_Valid.Location = pnl_Invalid.Location = pnl_General.Location; pnl_General.Visible = true; Tmr_Refresh.Enabled = true; this.Tmr_Refresh_Tick(Tmr_Refresh, null); }
private void Form1_Closed(object sender, EventArgs e) { FullScreen.ShowHHTaskBar(); }