public void DeInitPlugin() { ActGlobals.oFormActMain.BeforeLogLineRead -= oFormActMain_BeforeLogLineRead; if (tickBar != null) { tickBar.Dispose(); tickBar = null; } statusLabel.Text = "Plugin exited"; }
public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { statusLabel = pluginStatusText; statusLabel.Text = "Plugin started"; labelX = new Label(); labelX.Location = new Point(10, 14); labelX.AutoSize = true; labelX.Text = "X:"; textBoxX = new TextBox(); textBoxX.Location = new Point(30, 10); textBoxX.AutoSize = false; textBoxX.Size = new Size(50, 20); textBoxX.Text = Const.LOCATION.X.ToString(); textBoxX.TextChanged += textBox_TextChanged; pluginScreenSpace.Controls.Add(labelX); pluginScreenSpace.Controls.Add(textBoxX); labelY = new Label(); labelY.Location = new Point(100, 14); labelY.AutoSize = true; labelY.Text = "Y:"; textBoxY = new TextBox(); textBoxY.Location = new Point(120, 10); textBoxY.AutoSize = false; textBoxY.Size = new Size(50, 20); textBoxY.Text = Const.LOCATION.Y.ToString(); textBoxY.TextChanged += textBox_TextChanged; pluginScreenSpace.Controls.Add(labelY); pluginScreenSpace.Controls.Add(textBoxY); tickBar = new TickBar(); tickBar.Show(); tickBar.Hide(); ActGlobals.oFormActMain.BeforeLogLineRead += oFormActMain_BeforeLogLineRead; statusLabel.Text = "Plugin Inited."; }