private void Button3_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); string coodete = BinaryToString(File.ReadAllText(openFileDialog1.FileName)); var lines = coodete.Split('\n'); var specificLine = lines[0]; bool DoRepeat = true; string spr; int i = 0; string java = "SuperNPC"; deguug deguug = new deguug(); deguug.Show(); while (DoRepeat == true) { specificLine = lines[i]; if (specificLine.Contains("badosz")) { spr = specificLine.Remove(0, 7); deguug.richTextBox1.Text += spr + "\n"; } if (specificLine.Contains("java =")) { java = specificLine.Remove(0, 6); } if (specificLine == "java") { deguug.richTextBox1.Text += java + "\n"; } else if (specificLine == "nie banuj") { deguug.richTextBox1.Text += "nie banuj pls" + "\n"; } else if (specificLine == "microsoft/vscode") { deguug.richTextBox1.Text += File.ReadAllText("issues.txt") + "\n"; } i++; if (i == richTextBox1.Text.Split('\n').Length) { DoRepeat = false; } } }
private void Button1_Click(object sender, EventArgs e) { string coodete = richTextBox1.Text; var lines = coodete.Split('\n'); var specificLine = lines[0]; bool DoRepeat = true; string spr; int i = 0; string java = "SuperNPC"; deguug deguug = new deguug(); deguug.Show(); while (DoRepeat == true) { specificLine = lines[i]; if (specificLine.Contains("badosz")) { spr = specificLine.Remove(0, 7); deguug.richTextBox1.Text += spr + "\n"; } if (specificLine.Contains("GameWindow")) { spr = specificLine.Remove(0, 11); //wynik 500 500 string spr2 = spr.Remove(0, 3); string spr3 = spr.Remove(4, 3); deguug.richTextBox1.Text += spr2 + " " + spr3 + "\n"; GameWindow gameWindow = new GameWindow(Convert.ToInt32(spr2), Convert.ToInt32(spr3)); GLGameSupport gm = new GLGameSupport(gameWindow); } /*if (specificLine.Contains("SetCred")) * { * spr = specificLine.Remove(0, 7); * string spr2 = spr.Remove(0, 3); * string spr3 = spr.Remove(4, 3); * string spr2 = spr.Remove(0, 3); * string spr3 = spr.Remove(4, 3); * deguug.richTextBox1.Text += spr2 + " " + spr3 + "\n"; * * GLGameSupport gml; * gml.SetCred(); * * }*/ if (specificLine.Contains("java =")) { java = specificLine.Remove(0, 6); } if (specificLine == "java") { deguug.richTextBox1.Text += java + "\n"; } else if (specificLine == "nie banuj") { deguug.richTextBox1.Text += "nie banuj pls" + "\n"; } else if (specificLine == "microsoft/vscode") { deguug.richTextBox1.Text += File.ReadAllText("issues.txt") + "\n"; } i++; if (i == richTextBox1.Text.Split('\n').Length) { DoRepeat = false; } } }