Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Code by Knuthulhu
- //
- //Please don't hate on my code.
- //
- //I was very drunk when i wrote this
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.Linq;
- using System.Net;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Newtonsoft.Json;
- using SourceQuery;
- using Design_Dashboard_Modern.Properties;
- using System.IO;
- using Microsoft.VisualBasic;
- namespace Design_Dashboard_Modern
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- string bind_command;
- string bind_key;
- string baseURL = "http://fastdl.friendlyplayers.com/siggen/darkrpbase/";
- string apiURL = "https://api.steamid.uk/convert.php?api=GET UR OWN API KEY";
- private List<string> LATEST_VERSION_STRING = new List<string>();
- private string NGUTest = webclient.DownloadString("https://pastebin.com/raw/gh5DkDpG");
- public static WebClient webclient = new WebClient();
- public string SELECTED_PRINTER = "Normal Printer";
- public double overallTotalAmmount;
- public double SELECTED_BOOSTER_MULTIPLIER = 1;
- public double SELECTED_PRINTER_PROFIT = 35928;
- public double EARNINGS;
- private void Salir_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void Minimizar_Click(object sender, EventArgs e)
- {
- WindowState = FormWindowState.Minimized;
- }
- private void MenuSidebar_Click(object sender, EventArgs e)
- {
- if(Sidebar.Width == 270)
- {
- Sidebar.Visible = false;
- Sidebar.Width = 68;
- SidebarWrapper.Width = 90;
- LineaSidebar.Width = 52;
- AnimacionSidebar.Show(Sidebar);
- }
- else
- {
- Sidebar.Visible = false;
- Sidebar.Width = 270;
- SidebarWrapper.Width = 300;
- LineaSidebar.Width = 252;
- AnimacionSidebarBack.Show(Sidebar);
- }
- }
- private void Temporizador_Tick(object sender, EventArgs e)
- {
- Temporizador.Stop();
- }
- private void bunifuFlatButton1_Click(object sender, EventArgs e)
- {
- label1.Text = "Dashboard";
- PanelDash.Show();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- PanelCalculator.Hide();
- label24.Hide();
- PanelSettings.Hide();
- }
- private void bunifuFlatButton2_Click(object sender, EventArgs e)
- {
- label1.Text = "Servers";
- PanelDash.Hide();
- PanelServers.Show();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- PanelCalculator.Hide();
- label24.Hide();
- PanelSettings.Hide();
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- Process.Start("https://zarpgaming.com/");
- }
- private void label5_Click(object sender, EventArgs e)
- {
- }
- private void bunifuFlatButton6_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/darkrp.zarpgaming.com:27015");//DarkRP 1
- }
- private void bunifuFlatButton7_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/usa.zarpgaming.com:27015");//DarkRP USA
- }
- private void bunifuFlatButton8_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/play.zarpgaming.com:27035");//dr
- }
- private void bunifuFlatButton9_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/play.zarpgaming.com:27017");//ttt
- }
- private void bunifuFlatButton10_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/play.zarpgaming.com:27019");//bhop
- }
- private void bunifuFlatButton11_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/play.zarpgaming.com:27030");//surf
- }
- private void bunifuFlatButton12_Click(object sender, EventArgs e)
- {
- Process.Start("steam://connect/play.zarpgaming.com:27040");//ph
- }
- private void bunifuFlatButton3_Click(object sender, EventArgs e)
- {
- label1.Text = "Binds";
- PanelDash.Hide();
- PanelServers.Hide();
- PanelBinds.Show();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- PanelCalculator.Hide();
- label24.Hide();
- PanelSettings.Hide();
- }
- private void bunifuFlatButton4_Click(object sender, EventArgs e)
- {
- label1.Text = "Autoclicker";
- PanelDash.Hide();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Show();
- PanelRPCash.Hide();
- PanelCalculator.Hide();
- label24.Hide();
- PanelSettings.Hide();
- }
- private void bunifuFlatButton5_Click(object sender, EventArgs e)
- {
- PanelDash.Hide();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Show();
- PanelCalculator.Hide();
- label1.Text = "DarkRP Cash Lookup";
- label24.Hide();
- PanelSettings.Hide();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- PanelServers.Location = new Point(16, 24);
- PanelDash.Location = new Point(16, 24);
- PanelBinds.Location = new Point(16, 24);
- PanelAutoclicker.Location = new Point(16, 24);
- PanelRPCash.Location = new Point(16, 24);
- PanelCalculator.Location = new Point(16, 24);
- PanelSettings.Location = new Point(16, 24);
- PanelDash.Show();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- PanelCalculator.Hide();
- label24.Hide();
- PanelSettings.Hide();
- if (Settings.Default.light_mode == true)
- {
- Theme_Light();
- }
- try
- {
- LATEST_VERSION_STRING.Add(NGUTest);
- string str1 = NGUTest;
- lblLatestVer.Text = str1;
- }
- catch
- {
- lblLatestVer.Text = "Error - can't communicate with server";
- }
- }
- private void DropdownKeys_onItemSelected(object sender, EventArgs e)
- {
- if (DropdownKeys.selectedIndex == 0)
- {
- bind_key = "A";
- }
- else if (DropdownKeys.selectedIndex == 1)
- {
- bind_key = "B";
- }
- else if (DropdownKeys.selectedIndex == 2)
- {
- bind_key = "C";
- }
- else if (DropdownKeys.selectedIndex == 3)
- {
- bind_key = "D";
- }
- else if (DropdownKeys.selectedIndex == 4)
- {
- bind_key = "E";
- }
- else if (DropdownKeys.selectedIndex == 5)
- {
- bind_key = "F";
- }
- else if (DropdownKeys.selectedIndex == 6)
- {
- bind_key = "G";
- }
- else if (DropdownKeys.selectedIndex == 7)
- {
- bind_key = "H";
- }
- else if (DropdownKeys.selectedIndex == 8)
- {
- bind_key = "I";
- }
- else if (DropdownKeys.selectedIndex == 9)
- {
- bind_key = "J";
- }
- else if (DropdownKeys.selectedIndex == 10)
- {
- bind_key = "K";
- }
- else if (DropdownKeys.selectedIndex == 11)
- {
- bind_key = "L";
- }
- else if (DropdownKeys.selectedIndex == 12)
- {
- bind_key = "M";
- }
- else if (DropdownKeys.selectedIndex == 13)
- {
- bind_key = "N";
- }
- else if (DropdownKeys.selectedIndex == 14)
- {
- bind_key = "O";
- }
- else if (DropdownKeys.selectedIndex == 15)
- {
- bind_key = "P";
- }
- else if (DropdownKeys.selectedIndex == 16)
- {
- bind_key = "Q";
- }
- else if (DropdownKeys.selectedIndex == 17)
- {
- bind_key = "R";
- }
- else if (DropdownKeys.selectedIndex == 18)
- {
- bind_key = "S";
- }
- else if (DropdownKeys.selectedIndex == 19)
- {
- bind_key = "T";
- }
- else if (DropdownKeys.selectedIndex == 20)
- {
- bind_key = "U";
- }
- else if (DropdownKeys.selectedIndex == 21)
- {
- bind_key = "V";
- }
- else if (DropdownKeys.selectedIndex == 22)
- {
- bind_key = "W";
- }
- else if (DropdownKeys.selectedIndex == 23)
- {
- bind_key = "X";
- }
- else if (DropdownKeys.selectedIndex == 24)
- {
- bind_key = "Y";
- }
- else if (DropdownKeys.selectedIndex == 25)
- {
- bind_key = "Z";
- }
- else if (DropdownKeys.selectedIndex == 26)
- {
- bind_key = "Å";
- }
- else if (DropdownKeys.selectedIndex == 27)
- {
- bind_key = "Ä";
- }
- else if (DropdownKeys.selectedIndex == 28)
- {
- bind_key = "Ö";
- }
- else if (DropdownKeys.selectedIndex == 29)
- {
- bind_key = "1";
- }
- else if (DropdownKeys.selectedIndex == 30)
- {
- bind_key = "2";
- }
- else if (DropdownKeys.selectedIndex == 31)
- {
- bind_key = "3";
- }
- else if (DropdownKeys.selectedIndex == 32)
- {
- bind_key = "4";
- }
- else if (DropdownKeys.selectedIndex == 33)
- {
- bind_key = "5";
- }
- else if (DropdownKeys.selectedIndex == 34)
- {
- bind_key = "6";
- }
- else if (DropdownKeys.selectedIndex == 35)
- {
- bind_key = "7";
- }
- else if (DropdownKeys.selectedIndex == 36)
- {
- bind_key = "8";
- }
- else if (DropdownKeys.selectedIndex == 37)
- {
- bind_key = "9";
- }
- else if (DropdownKeys.selectedIndex == 38)
- {
- bind_key = "0";
- }
- else if (DropdownKeys.selectedIndex == 39)
- {
- bind_key = "KP_END";
- }
- else if (DropdownKeys.selectedIndex == 40)
- {
- bind_key = "KP_DOWNARROW";
- }
- else if (DropdownKeys.selectedIndex == 41)
- {
- bind_key = "KP_PGDN";
- }
- else if (DropdownKeys.selectedIndex == 42)
- {
- bind_key = "KP_LEFTARROW";
- }
- else if (DropdownKeys.selectedIndex == 43)
- {
- bind_key = "KP_5";
- }
- else if (DropdownKeys.selectedIndex == 44)
- {
- bind_key = "KP_RIGHTARROW";
- }
- else if (DropdownKeys.selectedIndex == 45)
- {
- bind_key = "KP_HOME";
- }
- else if (DropdownKeys.selectedIndex == 46)
- {
- bind_key = "KP_UPARROW";
- }
- else if (DropdownKeys.selectedIndex == 47)
- {
- bind_key = "KP_PGUP";
- }
- else if (DropdownKeys.selectedIndex == 48)
- {
- bind_key = "KP_INS";
- }
- }
- private void bunifuMaterialTextbox1_OnValueChanged(object sender, EventArgs e)
- {
- bind_command = bunifuMaterialTextbox1.Text;
- }
- private void bunifuFlatButton19_Click(object sender, EventArgs e)
- {
- bunifuMetroTextbox1.Text = "bind " + bind_key + " \u0022" + "say " + bind_command + "\u0022";
- MessageBox.Show("Your bind has been generated, to use just paste it in the in-game console.\n\nCommand Has Automaticly been copied to clipboard", "Done!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- Clipboard.SetText(bunifuMetroTextbox1.Text);
- }
- private void bunifuFlatButton13_Click(object sender, EventArgs e)
- {
- Process.Start(Application.StartupPath + $"/NI64.exe");
- }
- public string[] GetSteamID(string input)
- {
- WebClient wc = new WebClient();
- dynamic j = JsonConvert.DeserializeObject(wc.DownloadString(apiURL + $"&input={input}&format=json"));
- string[] ids = { j.converted.steamid, j.converted.steamid64 };
- return ids;
- }
- public void SetInfo(string SteamID64)
- {
- pictureBox2.ImageLocation = baseURL + SteamID64 + ".png";
- //pictureBox2.SizeMode = PictureBoxSizeMode.AutoSize;
- textBox1.Text = baseURL + SteamID64 + ".png";
- textBox2.Text = "http://steamcommunity.com/profiles/" + SteamID64;
- }
- private void bunifuFlatButton14_Click(object sender, EventArgs e)
- {
- textBox1.Text = bunifuMaterialTextbox2.Text;
- try
- {
- if (textBox1.ToString().Contains("STEAM_"))
- {
- string SteamID64 = GetSteamID(textBox1.ToString())[1];
- SetInfo(SteamID64);
- }
- else if (textBox1.ToString().StartsWith("http"))
- {
- string steam64string = textBox1.Text;
- string Steam64;
- if (steam64string.StartsWith("http:")) { Steam64 = steam64string.Replace("http://steamcommunity.com/profiles/", ""); }
- else { Steam64 = steam64string.Replace("https://steamcommunity.com/profiles/", ""); }
- SetInfo(Steam64);
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Make sure the input was a valid steamid\\profile link");
- return;
- }
- }
- private void label21_Click(object sender, EventArgs e)
- {
- }
- private void bunifuFlatButton15_Click(object sender, EventArgs e)
- {
- label1.Text = "Printer Calculator";
- PanelCalculator.Show();
- PanelDash.Hide();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- PanelSettings.Hide();
- label24.Show();
- }
- private void bunifuFlatButton18_Click(object sender, EventArgs e)
- {
- MessageBox.Show("You would earn: " + overallTotalAmmount.ToString() + "$/hour", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- private void bunifuFlatButton20_Click(object sender, EventArgs e)
- {
- overallTotalAmmount = 0;
- dataGridView1.Rows.Clear();
- }
- private void bunifuFlatButton16_Click(object sender, EventArgs e)
- {
- EARNINGS = SELECTED_PRINTER_PROFIT * SELECTED_BOOSTER_MULTIPLIER;
- dataGridView1.Rows.Add(SELECTED_PRINTER, SELECTED_BOOSTER_MULTIPLIER.ToString(), EARNINGS.ToString());
- overallTotalAmmount += EARNINGS;
- }
- private void bunifuFlatButton17_Click(object sender, EventArgs e)
- {
- if (dataGridView1.SelectedRows.Count > 0 && dataGridView1.SelectedRows[0].Index != dataGridView1.Rows.Count - 1)
- {
- dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[0].Index);
- }
- }
- private void bunifuDropdown1_onItemSelected_1(object sender, EventArgs e)
- {
- if (bunifuDropdown1.selectedIndex == 0)
- {
- SELECTED_PRINTER = "Topaz Printer";
- SELECTED_PRINTER_PROFIT = 18000;
- }
- else if (bunifuDropdown1.selectedIndex == 1)
- {
- SELECTED_PRINTER = "Amethyst Printer";
- SELECTED_PRINTER_PROFIT = 27000;
- }
- else if (bunifuDropdown1.selectedIndex == 2)
- {
- SELECTED_PRINTER = "Emerald Printer";
- SELECTED_PRINTER_PROFIT = 45000;
- }
- else if (bunifuDropdown1.selectedIndex == 3)
- {
- SELECTED_PRINTER = "Sapphire Printer";
- SELECTED_PRINTER_PROFIT = 135000;
- }
- else if (bunifuDropdown1.selectedIndex == 4)
- {
- SELECTED_PRINTER = "Normal Printer";
- SELECTED_PRINTER_PROFIT = 36000;
- }
- else if (bunifuDropdown1.selectedIndex == 5)
- {
- SELECTED_PRINTER = "Ruby Printer";
- SELECTED_PRINTER_PROFIT = 72000;
- }
- else if (bunifuDropdown1.selectedIndex == 6)
- {
- SELECTED_PRINTER = "Gold Printer";
- SELECTED_PRINTER_PROFIT = 144000;
- }
- else if (bunifuDropdown1.selectedIndex == 7)
- {
- SELECTED_PRINTER = "Nuclear Printer";
- SELECTED_PRINTER_PROFIT = 324000;
- }
- else if (bunifuDropdown1.selectedIndex == 8)
- {
- SELECTED_PRINTER = "All Shop Printers";
- SELECTED_PRINTER_PROFIT = 1063430;
- }
- else if (bunifuDropdown1.selectedIndex == 9)
- {
- SELECTED_PRINTER = "Diamond Printer";
- SELECTED_PRINTER_PROFIT = 720000;
- }
- else if (bunifuDropdown1.selectedIndex == 10)
- {
- SELECTED_PRINTER = "Black Diamond Printer";
- SELECTED_PRINTER_PROFIT = 1200000;
- }
- else if (bunifuDropdown1.selectedIndex == 11)
- {
- SELECTED_PRINTER = "GenCorp Printer";
- SELECTED_PRINTER_PROFIT = 1800000;
- }
- else if (bunifuDropdown1.selectedIndex == 12)
- {
- SELECTED_PRINTER = "Magik Printer";
- SELECTED_PRINTER_PROFIT = 2400000;
- }
- else if (bunifuDropdown1.selectedIndex == 13)
- {
- SELECTED_PRINTER = "Iridium Printer";
- SELECTED_PRINTER_PROFIT = 2250000;
- }
- else if (bunifuDropdown1.selectedIndex == 14)
- {
- SELECTED_PRINTER = "Festive Printer";
- SELECTED_PRINTER_PROFIT = 1800000;
- }
- else if (bunifuDropdown1.selectedIndex == 15)
- {
- SELECTED_PRINTER = "Golden Plated Printer";
- SELECTED_PRINTER_PROFIT = 27000000;
- }
- else if (bunifuDropdown1.selectedIndex == 16)
- {
- SELECTED_PRINTER = "Uranium Printer";
- SELECTED_PRINTER_PROFIT = 133;
- }
- }
- private void bunifuDropdown2_onItemSelected(object sender, EventArgs e)
- {
- if (bunifuDropdown2.selectedIndex == 0)
- {
- SELECTED_BOOSTER_MULTIPLIER = 1;
- }
- else if (bunifuDropdown2.selectedIndex == 1)
- {
- SELECTED_BOOSTER_MULTIPLIER = 2;
- }
- else if (bunifuDropdown2.selectedIndex == 2)
- {
- SELECTED_BOOSTER_MULTIPLIER = 3;
- }
- else if (bunifuDropdown2.selectedIndex == 3)
- {
- SELECTED_BOOSTER_MULTIPLIER = 4;
- }
- else if (bunifuDropdown2.selectedIndex == 4)
- {
- SELECTED_BOOSTER_MULTIPLIER = 5;
- }
- }
- private void bunifuFlatButton21_Click(object sender, EventArgs e)
- {
- label1.Text = "Settings";
- PanelCalculator.Hide();
- PanelDash.Hide();
- PanelServers.Hide();
- PanelBinds.Hide();
- PanelAutoclicker.Hide();
- PanelRPCash.Hide();
- label24.Hide();
- PanelSettings.Show();
- }
- public void Theme_Dark()
- {
- PanelDash.BackColor = Color.FromArgb(39, 41, 61);
- PanelServers.BackColor = Color.FromArgb(39, 41, 61);
- PanelBinds.BackColor = Color.FromArgb(39, 41, 61);
- PanelAutoclicker.BackColor = Color.FromArgb(39, 41, 61);
- PanelRPCash.BackColor = Color.FromArgb(39, 41, 61);
- PanelCalculator.BackColor = Color.FromArgb(39, 41, 61);
- PanelSettings.BackColor = Color.FromArgb(39, 41, 61);
- MenuTop.BackColor = Color.FromArgb(30, 30, 46);
- SidebarWrapper.BackColor = Color.FromArgb(30, 30, 46);
- Wrapper.BackColor = Color.FromArgb(30, 30, 46);
- MenuSidebar.Image = Resources.Menu_Dark;
- Minimizar.Image = Resources.Mini_Dark;
- Salir.Image = Resources.Close_Dark;
- bunifuFlatButton1.Iconimage = Resources.Dash_Dark;
- bunifuFlatButton2.Iconimage = Resources.Server_Dark;
- bunifuFlatButton3.Iconimage = Resources.Bind_Dark;
- bunifuFlatButton4.Iconimage = Resources.Click_Dark;
- bunifuFlatButton5.Iconimage = Resources.RP_Dark;
- bunifuFlatButton15.Iconimage = Resources.Calc_Dark;
- bunifuFlatButton21.Iconimage = Resources.Setting_Dark;
- bunifuFlatButton6.Iconimage = Resources.RP_Dark;
- bunifuFlatButton7.Iconimage = Resources.RP_Dark;
- bunifuFlatButton8.Iconimage = Resources.DR_Dark;
- bunifuFlatButton9.Iconimage = Resources.TTT_Dark;
- bunifuFlatButton10.Iconimage = Resources.Bhop_Dark;
- bunifuFlatButton11.Iconimage = Resources.Surf_Dark;
- bunifuFlatButton12.Iconimage = Resources.PH_Dark;
- bunifuFlatButton19.Iconimage = Resources.Bind_Dark;
- bunifuFlatButton13.Iconimage = Resources.Click_Dark;
- bunifuFlatButton14.Iconimage = Resources.Cash_Dark;
- bunifuFlatButton24.Iconimage = Resources.Save_Dark;
- bunifuFlatButton25.Iconimage = Resources.Load_Dark;
- bunifuFlatButton16.Iconimage = Resources.Calc_Add_Dark;
- bunifuFlatButton17.Iconimage = Resources.Calc_Remove_Dark;
- bunifuFlatButton18.Iconimage = Resources.Calc_Dark;
- bunifuFlatButton20.Iconimage = Resources.Calc_Clear_Dark;
- bunifuFlatButton26.Iconimage = Resources.Bind_Dark;
- label34.ForeColor = Color.LightGray;
- label1.ForeColor = Color.LightGray;
- label24.ForeColor = Color.LightGray;
- label14.ForeColor = Color.LightGray;
- label13.ForeColor = Color.LightGray;
- label7.ForeColor = Color.LightGray;
- label3.ForeColor = Color.LightGray;
- label11.ForeColor = Color.LightGray;
- label19.ForeColor = Color.LightGray;
- label21.ForeColor = Color.LightGray;
- label18.ForeColor = Color.LightGray;
- label17.ForeColor = Color.LightGray;
- label12.ForeColor = Color.LightGray;
- label8.ForeColor = Color.LightGray;
- label9.ForeColor = Color.LightGray;
- label30.ForeColor = Color.LightGray;
- label22.ForeColor = Color.LightGray;
- label20.ForeColor = Color.LightGray;
- lblrp1.ForeColor = Color.LightGray;
- lblrpusa.ForeColor = Color.LightGray;
- lbldr.ForeColor = Color.LightGray;
- lblttt.ForeColor = Color.LightGray;
- lblbhop.ForeColor = Color.LightGray;
- lblsurf.ForeColor = Color.LightGray;
- lblph.ForeColor = Color.LightGray;
- label5.ForeColor = Color.LightGray;
- label23.ForeColor = Color.LightGray;
- bunifuFlatButton19.Textcolor = Color.LightGray;
- bunifuFlatButton22.Textcolor = Color.LightGray;
- bunifuFlatButton23.Textcolor = Color.LightGray;
- bunifuFlatButton13.Textcolor = Color.LightGray;
- bunifuFlatButton14.Textcolor = Color.LightGray;
- bunifuFlatButton16.Textcolor = Color.LightGray;
- bunifuFlatButton17.Textcolor = Color.LightGray;
- bunifuFlatButton18.Textcolor = Color.LightGray;
- bunifuFlatButton20.Textcolor = Color.LightGray;
- bunifuFlatButton6.Textcolor = Color.LightGray;
- bunifuFlatButton7.Textcolor = Color.LightGray;
- bunifuFlatButton8.Textcolor = Color.LightGray;
- bunifuFlatButton9.Textcolor = Color.LightGray;
- bunifuFlatButton10.Textcolor = Color.LightGray;
- bunifuFlatButton11.Textcolor = Color.LightGray;
- bunifuFlatButton12.Textcolor = Color.LightGray;
- bunifuFlatButton24.Textcolor = Color.LightGray;
- bunifuFlatButton25.Textcolor = Color.LightGray;
- bunifuFlatButton26.Textcolor = Color.LightGray;
- bunifuFlatButton6.ButtonText = " DarkRP";
- bunifuFlatButton7.ButtonText = " DarkRP USA";
- bunifuFlatButton8.ButtonText = " Deathrun";
- bunifuFlatButton9.ButtonText = " TTT";
- bunifuFlatButton10.ButtonText = " Bhop";
- bunifuFlatButton11.ButtonText = " Surf";
- bunifuFlatButton12.ButtonText = " Prophunt";
- DropdownKeys.ForeColor = Color.LightGray;
- bunifuDropdown1.ForeColor = Color.LightGray;
- bunifuDropdown2.ForeColor = Color.LightGray;
- pictureBox2.BackColor = Color.FromArgb(39, 41, 61);
- }
- public void Theme_Light()
- {
- PanelDash.BackColor = Color.FromArgb(255, 255, 255);
- PanelServers.BackColor = Color.FromArgb(255, 255, 255);
- PanelBinds.BackColor = Color.FromArgb(255, 255, 255);
- PanelAutoclicker.BackColor = Color.FromArgb(255, 255, 255);
- PanelRPCash.BackColor = Color.FromArgb(255, 255, 255);
- PanelCalculator.BackColor = Color.FromArgb(255, 255, 255);
- PanelSettings.BackColor = Color.FromArgb(255, 255, 255);
- MenuTop.BackColor = Color.FromArgb(200, 200, 200);
- SidebarWrapper.BackColor = Color.FromArgb(200, 200, 200);
- Wrapper.BackColor = Color.FromArgb(200, 200, 200);
- MenuSidebar.Image = Resources.Menu_Light;
- Minimizar.Image = Resources.Mini_Light;
- Salir.Image = Resources.Close_Light;
- bunifuFlatButton1.Iconimage = Resources.Dash_Light;
- bunifuFlatButton2.Iconimage = Resources.Server_Light;
- bunifuFlatButton3.Iconimage = Resources.Bind_Light;
- bunifuFlatButton4.Iconimage = Resources.Click_Light;
- bunifuFlatButton5.Iconimage = Resources.RP_Light;
- bunifuFlatButton15.Iconimage = Resources.Calc_Light;
- bunifuFlatButton21.Iconimage = Resources.Setting_Light;
- bunifuFlatButton6.Iconimage = Resources.RP_Light;
- bunifuFlatButton7.Iconimage = Resources.RP_Light;
- bunifuFlatButton8.Iconimage = Resources.DR_Light;
- bunifuFlatButton9.Iconimage = Resources.TTT_Light;
- bunifuFlatButton10.Iconimage = Resources.Bhop_Light;
- bunifuFlatButton11.Iconimage = Resources.Surf_Light;
- bunifuFlatButton12.Iconimage = Resources.PH_Light;
- bunifuFlatButton19.Iconimage = Resources.Bind_Light;
- bunifuFlatButton13.Iconimage = Resources.Click_Light;
- bunifuFlatButton14.Iconimage = Resources.Cash_Light;
- bunifuFlatButton24.Iconimage = Resources.Save_Light;
- bunifuFlatButton25.Iconimage = Resources.Load_Light;
- bunifuFlatButton16.Iconimage = Resources.Calc_Add_Light;
- bunifuFlatButton17.Iconimage = Resources.Calc_Remove_Light;
- bunifuFlatButton18.Iconimage = Resources.Calc_Light;
- bunifuFlatButton20.Iconimage = Resources.Calc_Clear_Light;
- bunifuFlatButton26.Iconimage = Resources.Bind_Light;
- label34.ForeColor = Color.Black;
- label1.ForeColor = Color.Black;
- label24.ForeColor = Color.Black;
- label14.ForeColor = Color.Black;
- label13.ForeColor = Color.Black;
- label7.ForeColor = Color.Black;
- label3.ForeColor = Color.Black;
- label11.ForeColor = Color.Black;
- label19.ForeColor = Color.Black;
- label21.ForeColor = Color.Black;
- label18.ForeColor = Color.Black;
- label17.ForeColor = Color.Black;
- label12.ForeColor = Color.Black;
- label8.ForeColor = Color.Black;
- label9.ForeColor = Color.Black;
- label30.ForeColor = Color.Black;
- label22.ForeColor = Color.Black;
- label20.ForeColor = Color.Black;
- lblrp1.ForeColor = Color.Black;
- lblrpusa.ForeColor = Color.Black;
- lbldr.ForeColor = Color.Black;
- lblttt.ForeColor = Color.Black;
- lblbhop.ForeColor = Color.Black;
- lblsurf.ForeColor = Color.Black;
- lblph.ForeColor = Color.Black;
- label5.ForeColor = Color.Black;
- label23.ForeColor = Color.Black;
- bunifuFlatButton19.Textcolor = Color.Black;
- bunifuFlatButton22.Textcolor = Color.Black;
- bunifuFlatButton23.Textcolor = Color.Black;
- bunifuFlatButton13.Textcolor = Color.Black;
- bunifuFlatButton14.Textcolor = Color.Black;
- bunifuFlatButton16.Textcolor = Color.Black;
- bunifuFlatButton17.Textcolor = Color.Black;
- bunifuFlatButton18.Textcolor = Color.Black;
- bunifuFlatButton20.Textcolor = Color.Black;
- bunifuFlatButton6.Textcolor = Color.Black;
- bunifuFlatButton7.Textcolor = Color.Black;
- bunifuFlatButton8.Textcolor = Color.Black;
- bunifuFlatButton9.Textcolor = Color.Black;
- bunifuFlatButton10.Textcolor = Color.Black;
- bunifuFlatButton11.Textcolor = Color.Black;
- bunifuFlatButton12.Textcolor = Color.Black;
- bunifuFlatButton24.Textcolor = Color.Black;
- bunifuFlatButton25.Textcolor = Color.Black;
- bunifuFlatButton26.Textcolor = Color.Black;
- bunifuFlatButton6.ButtonText = " DarkRP";
- bunifuFlatButton7.ButtonText = " DarkRP USA";
- bunifuFlatButton8.ButtonText = " Deathrun";
- bunifuFlatButton9.ButtonText = " TTT";
- bunifuFlatButton10.ButtonText = " Bhop";
- bunifuFlatButton11.ButtonText = " Surf";
- bunifuFlatButton12.ButtonText = " Prophunt";
- DropdownKeys.ForeColor = Color.Black;
- bunifuDropdown1.ForeColor = Color.Black;
- bunifuDropdown2.ForeColor = Color.Black;
- pictureBox2.BackColor = Color.FromArgb(255, 255, 255);
- }
- private void bunifuFlatButton22_Click(object sender, EventArgs e)
- {
- Theme_Dark();
- Settings.Default.light_mode = false;
- Settings.Default.Save();
- }
- private void bunifuFlatButton23_Click(object sender, EventArgs e)
- {
- Theme_Light();
- Settings.Default.light_mode = true;
- Settings.Default.Save();
- }
- private void bunifuFlatButton24_Click(object sender, EventArgs e)
- {
- string defaultResponse = "Your Config";
- string input = Interaction.InputBox("Enter your Config name below", "Enter Name", defaultResponse, -1, -1);
- if (input.Length == 0)
- {
- MessageBox.Show("Input can't be empty!!", "Error");
- }
- else
- {
- MessageBox.Show("Will save printer config with the name: " + input);
- string file = Application.StartupPath + "/" + input + "_calcsave.bin";
- using (BinaryWriter bw = new BinaryWriter(File.Open(file, FileMode.Create)))
- {
- bw.Write(dataGridView1.Columns.Count);
- bw.Write(dataGridView1.Rows.Count);
- foreach (DataGridViewRow dgvR in dataGridView1.Rows)
- {
- for (int j = 0; j < dataGridView1.Columns.Count; ++j)
- {
- object val = dgvR.Cells[j].Value;
- if (val == null)
- {
- bw.Write(false);
- bw.Write(false);
- }
- else
- {
- bw.Write(true);
- bw.Write(val.ToString());
- }
- }
- }
- }
- }
- }
- private void bunifuFlatButton25_Click(object sender, EventArgs e)
- {
- try
- {
- string defaultResponse = "Your Config";
- string input = Interaction.InputBox("Enter your Config name below", "Enter Name", defaultResponse, -1, -1);
- if (input.Length == 0)
- {
- MessageBox.Show("Input can't be empty!!", "Error");
- }
- else
- {
- MessageBox.Show("Will load printer config with the name: " + input);
- dataGridView1.Rows.Clear();
- string file = Application.StartupPath + "/" + input + "_calcsave.bin";
- using (BinaryReader bw = new BinaryReader(File.Open(file, FileMode.Open)))
- {
- int n = bw.ReadInt32();
- int m = bw.ReadInt32();
- for (int i = 0; i < m; ++i)
- {
- dataGridView1.Rows.Add();
- for (int j = 0; j < n; ++j)
- {
- if (bw.ReadBoolean())
- {
- dataGridView1.Rows[i].Cells[j].Value = bw.ReadString();
- }
- else bw.ReadBoolean();
- }
- }
- }
- }
- }
- catch
- {
- MessageBox.Show("Config does not exist!!!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
- }
- private void bunifuFlatButton26_Click(object sender, EventArgs e)
- {
- advanced_binds bins = new advanced_binds();
- bins.Show();
- Hide();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement