Exemplo n.º 1
0
 public GInfoForm()
     : base(0, 0, 400, 430)
 {
     base.m_NonRestrictivePicking = true;
     base.Client.m_NonRestrictivePicking = true;
     Gumps.Focus = this;
     base.Text = "Information Browser";
     InfoProvider[] providerArray = new InfoProvider[] { new CommandInfoProvider(), new CastingInfoProvider(), new SwingInfoProvider() };
     GMainMenu toAdd = new GMainMenu((this.Width - 130) - 4, 8);
     GMenuItem child = new GMenuItem("Change Provider") {
         DropDown = true
     };
     for (int i = 0; i < providerArray.Length; i++)
     {
         child.Add(new ChangeProviderMenu(this, providerArray[i]));
     }
     toAdd.Add(child);
     this.RecurseFormatMenu(child);
     base.Client.Children.Add(toAdd);
     this.m_CPMenu = toAdd;
     this.Provider = providerArray[0];
     base.GUID = "Info Browser";
     this.Center();
 }
Exemplo n.º 2
0
 public ChangeProviderMenu(GInfoForm form, InfoProvider provider)
     : base(provider.Name)
 {
     this.m_Form = form;
     this.m_Provider = provider;
 }
Exemplo n.º 3
0
 public ChangeProviderMenu(GInfoForm form, InfoProvider provider) : base(provider.Name)
 {
     this.m_Form     = form;
     this.m_Provider = provider;
 }