Пример #1
0
 public MSPProxy(ProfileFormatter formatter, string ghAddOnVersion, SupportedFields supportedFields, IWrapper wrapper)
 {
     this.formatter       = formatter;
     this.addOnsVersion   = "GH/" + ghAddOnVersion;
     this.supportedFields = supportedFields;
     this.msp             = wrapper.Wrap <ILibMSPWrapper>("libMSPWrapper");
 }
Пример #2
0
 public CharacterListButtonHandler(IFrame parent, ProfileFormatter formatter)
 {
     this.Button = (ICharacterListButton)Global.FrameProvider.CreateFrame(FrameType.CheckButton, parent.GetName() + "Button" + ButtonCount, parent, Template);
     ButtonCount++;
     this.Button.SetScript(ButtonHandler.OnClick, this.OnClick);
     this.Button.SetWidth(Width);
     this.Button.SetHeight(Height);
     this.formatter = formatter;
 }
Пример #3
0
        private void PrepareButtons(int count)
        {
            var formatter = new ProfileFormatter();

            for (var i = this.buttons.Count; i < count; i++)
            {
                var button = new CharacterListButtonHandler(this.frame, formatter);
                if (i == 0)
                {
                    button.Button.SetPoint(FramePoint.TOP, this.frame, FramePoint.TOP);
                }
                else
                {
                    button.Button.SetPoint(FramePoint.TOP, this.buttons.Last().Button, FramePoint.BOTTOM);
                }
                this.buttons.Add(button);
            }
        }