private void Changelog_Load(object sender, EventArgs e) { _this = this; this.Top = Properties.Settings.Default.D3Helper_MainForm_StartPosition.Y; this.Left = Properties.Settings.Default.D3Helper_MainForm_StartPosition.X; this.VerticalScroll.Enabled = true; try { List <string> allLogs = A_TCPClient.TCPClient.send_Instruction(A_Enums.TCPInstructions.GetChangelog, "") as List <string>; this.lb_changelog.Text = "Changelog" + Environment.NewLine + Environment.NewLine; foreach (var entry in allLogs) { this.lb_changelog.Text += entry + Environment.NewLine + Environment.NewLine; } this.Width = this.lb_changelog.Width; } catch { } }
private void Changelog_Load(object sender, EventArgs e) { _this = this; this.Top = Properties.Settings.Default.D3Helper_MainForm_StartPosition.Y; this.Left = Properties.Settings.Default.D3Helper_MainForm_StartPosition.X; this.VerticalScroll.Enabled = true; try { List<string> allLogs = A_TCPClient.TCPClient.send_Instruction(A_Enums.TCPInstructions.GetChangelog, "") as List<string>; this.lb_changelog.Text = "Changelog" + Environment.NewLine + Environment.NewLine; foreach (var entry in allLogs) { this.lb_changelog.Text += entry + Environment.NewLine + Environment.NewLine; } this.Width = this.lb_changelog.Width; } catch { } }
private void button2_Click(object sender, EventArgs e) { if (Window_Changelog._this == null) { Window_Changelog cl = new Window_Changelog(); cl.Show(); } }
private void Window_Changelog_Closed(object sender, EventArgs e) { _this = null; }