public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            if (View.Bounds.Height > View.Bounds.Width)
            {
                View.SetSize((float)View.Bounds.Height, (float)View.Bounds.Width);
            }

            BackgroundView.BackgroundColor = UIColor.Clear;
            BackgroundView.BorderColor     = UIExtensions.RGBColor(0xFFFFFF);
            BackgroundView.Border          = 2.0f;
            BackgroundView.Gradient        = new GradientHelper(CMUIColors.SecondaryColorADark);



            HeaderView.BackgroundColor = UIColor.Clear;
            HeaderView.Border          = 0;
            HeaderView.Gradient        = new GradientHelper(CMUIColors.PrimaryColorDark);

            HeaderLabel.TextColor       = UIColor.White;
            HeaderLabel.BackgroundColor = UIColor.Clear;

            _BasicPage       = new MonsterEditorBasicPage();
            _DefensePage     = new MonsterEditorDefensePage();
            _OffensePage     = new MonsterEditorOffensePage();
            _StatisticsPage  = new MonsterEditorStatisticsPage();
            _FeatsPage       = new MonsterEditorFeatsPage();
            _SpecialPage     = new MonsterEditorSpecialPage();
            _DescriptionPage = new MonsterEditorDescriptionPage();

            _Pages = new List <MonsterEditorPage>()
            {
                _BasicPage, _DefensePage, _OffensePage, _StatisticsPage, _FeatsPage, _SpecialPage, _DescriptionPage
            };

            _TabButtons = new List <GradientButton>()
            {
                BasicButton, DefenseButton, OffenseButton, StatisticsButton, FeatsButton, SpecialButton, DescriptionButton
            };

            PageBorderView.Gradient    = new GradientHelper(CMUIColors.SecondaryColorADarker);
            PageBorderView.Border      = 2;
            PageBorderView.BorderColor = UIExtensions.RGBColor(0xFFFFFF);

            foreach (MonsterEditorPage p in _Pages)
            {
                if (p != null)
                {
                    p.CurrentMonster = Monster;
                    p.DialogParent   = this.View;
                }
            }

            ShowPage(0);

            UpdateOK();
        }
 public KnownViewDelegate(MonsterEditorStatisticsPage state)
 {
     this.state = state;
 }
 public AvailableViewDelegate(MonsterEditorStatisticsPage state)
 {
     this.state = state;
 }
 public KnownViewDataSource(MonsterEditorStatisticsPage state)
 {
     this.state = state;
 }
 public AvailableViewDataSource(MonsterEditorStatisticsPage state)
 {
     this.state = state;
 }