Deathmax

Untitled

Mar 19th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using aIW;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Windows.Forms;
  10.  
  11. namespace Test_Form
  12. {
  13.     public class Test : AdminPluginBase
  14.     {
  15.         public bool run = false;
  16.  
  17.         public override void OnFrame()
  18.         {
  19.             if (!run)
  20.             {
  21.                 Form1 form = new Form1();
  22.                 form.Show();
  23.                 run = true;
  24.             }
  25.         }
  26.     }
  27.     public partial class Form1 : Form
  28.     {
  29.         public Form1()
  30.         {
  31.             InitializeComponent();
  32.         }
  33.  
  34.         private void Form1_Load(object sender, EventArgs e)
  35.         {
  36.             try
  37.             {
  38.                 Test test = new Test();
  39.                 test.SayAll("hihihi");
  40.                 MessageBox.Show("SayAll called");
  41.             }
  42.             catch (Exception ex)
  43.             {
  44.                 MessageBox.Show(ex.ToString());
  45.             }
  46.         }
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment