static void Main() { Class_1 cl_1 = new Class_1(); Class_2 cl_2 = new Class_2(); // Call method from base class and from child class cl_1.sayHi(); cl_2.sayHi(); }
private void DecodeStrings() { ProgressBarCount = 0; var stopwatch = new Stopwatch(); stopwatch.Start(); int fileCount = 0; foreach (string[] path in filePath) { for (int i = 0; i < path.Length; i++) { ProgressBarCount = i; string originalText = File.ReadAllText(path[i]); string regexPattern = @"\(-([0-9]\d{9})\)"; Match match = Regex.Match(originalText, regexPattern); if (match.Success) { try { string result = Regex.Replace(originalText, regexPattern, m => { int value = -(Convert.ToInt32(m.Groups[1].Value)); return(WrapperLeft_TextBox.Text + Class_2.GetDefinitionName(value, binaryDatas) + WrapperRight_TextBox.Text); }); File.WriteAllText(path[i].Remove(path[i].Length - 3) + "___DECODED.as", result); fileCount++; } catch { Log("Something went wrong... Hmmmmm.... Im to lazy to set up a trace so figure it out yourself ;)", MessageType.ERROR); } } } } WCDecodeProgressBar_timer.Stop(); stopwatch.Stop(); Log($"{fileCount} - Files Decoded in '{stopwatch.Elapsed.Seconds}'seconds"); ShakeMe("Finsihed", MessageType.INFO, MessageBoxButtons.OK, MessageBoxIcon.Information); Decode_ProgressBar.Invoke(new MethodInvoker(delegate { Decode_ProgressBar.Value = 0; })); }