Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using aIW;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Test_Form
- {
- public class Test : AdminPluginBase
- {
- public bool run = false;
- public override void OnFrame()
- {
- if (!run)
- {
- Form1 form = new Form1();
- form.Show();
- run = true;
- }
- }
- }
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- try
- {
- Test test = new Test();
- test.SayAll("hihihi");
- MessageBox.Show("SayAll called");
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment