//============================================================================================================================= private void SXRLoader_Load(object sender, EventArgs e) { SXROptions Options = new SXROptions(); //============================================================================================================================= // SXRLOADER THEMES //============================================================================================================================= WebClient Client = new WebClient(); string Themes = File.ReadAllText(Application.StartupPath + "\\Bin\\Themes.json"); JObject jobject = JObject.Parse(Themes); // ===================== SXRLOADER LOGO ===================== // this.pictureBox1.ImageLocation = jobject["SXRLogo"]["SXRLoaderLogo"]["ImageLink"].ToString(); // ===================== SXRLOADER HEADER ===================== // this.panel1.BackColor = jobject["SXRLoader"]["Header"]["BackColor"].ToObject <Color>(); // ===================== SXRLOADER UI ===================== // this.BackColor = jobject["SXRLoader"]["SXRLoaderUI"]["BackColor"].ToObject <Color>(); // ===================== SXRLOADER FONTS ===================== // this.label1.ForeColor = jobject["SXRLoader"]["Fonts"]["ForeColor"].ToObject <Color>(); this.label2.ForeColor = jobject["SXRLoader"]["Fonts"]["ForeColor"].ToObject <Color>(); //============================================================================================================================= // SXRLOADER THEMES END //============================================================================================================================= timer1.Start(); }
private void Button6_Click(object sender, EventArgs e) { SXROptions Options = new SXROptions(); button6.Text = "Starting..."; Task.Delay(1000).Wait(); button6.Text = "Options"; Options.ShowDialog(); }