示例#1
0
 public override void Hook_Initialise(Forms.Main main)
 {
     _m = main;
     item = new Gtk.MenuItem("#pidgeon");
     item.Activated += new EventHandler(pidgeonToolStripMenuItem_Click);
     separator = new Gtk.SeparatorMenuItem();
     main.HelpMenu.Append(separator);
     main.HelpMenu.Append(item);
     separator.Show();
     item.Show();
     Core.DebugLog("Registered #pidgeon in menu");
 }
示例#2
0
文件: Core.cs 项目: JGunning/OpenAIM
 /// <summary>
 /// Sets the reference to system form
 /// </summary>
 /// <param name='form'>
 /// Form.
 /// </param>
 public static void SetMain(Forms.Main form)
 {
     _main = form;
 }