Esempio n. 1
0
        /// <summary>
        /// cTor.
        /// </summary>
        /// <param name="he"></param>
        internal control_Classes(he he)
        {
            InitializeComponent();

            _he = he;

            cf1_FeatLabel.Text                                                                                       =
                cf1_SpellLabel.Text                                                                                  =
                    cf2_FeatLabel.Text                                                                               =
                        cf2_SpellLabel.Text                                                                          =
                            cf3_FeatLabel.Text                                                                       =
                                cf3_SpellLabel.Text                                                                  =
                                    cf4_FeatLabel.Text                                                               =
                                        cf4_SpellLabel.Text                                                          =
                                            cf5_FeatLabel.Text                                                       =
                                                cf5_SpellLabel.Text                                                  =
                                                    cf6_FeatLabel.Text                                               =
                                                        cf6_SpellLabel.Text                                          =
                                                            cf7_FeatLabel.Text                                       =
                                                                cf7_SpellLabel.Text                                  =
                                                                    cf8_FeatLabel.Text                               =
                                                                        cf8_SpellLabel.Text                          =
                                                                            cf9_FeatLabel.Text                       =
                                                                                cf9_SpellLabel.Text                  =
                                                                                    cf10_FeatLabel.Text              =
                                                                                        cf10_SpellLabel.Text         =
                                                                                            cf11_FeatLabel.Text      =
                                                                                                cf11_SpellLabel.Text = String.Empty;

            ClassFlags_hex.BackColor                                                                                              =
                ClassFlags_bin.BackColor                                                                                          =
                    ClassFeat1_hex.BackColor                                                                                      =
                        ClassFeat1_bin.BackColor                                                                                  =
                            ClassFeat2_hex.BackColor                                                                              =
                                ClassFeat2_bin.BackColor                                                                          =
                                    ClassFeat3_hex.BackColor                                                                      =
                                        ClassFeat3_bin.BackColor                                                                  =
                                            ClassFeat4_hex.BackColor                                                              =
                                                ClassFeat4_bin.BackColor                                                          =
                                                    ClassFeat5_hex.BackColor                                                      =
                                                        ClassFeat5_bin.BackColor                                                  =
                                                            ClassFeat6_hex.BackColor                                              =
                                                                ClassFeat6_bin.BackColor                                          =
                                                                    ClassFeat7_hex.BackColor                                      =
                                                                        ClassFeat7_bin.BackColor                                  =
                                                                            ClassFeat8_hex.BackColor                              =
                                                                                ClassFeat8_bin.BackColor                          =
                                                                                    ClassFeat9_hex.BackColor                      =
                                                                                        ClassFeat9_bin.BackColor                  =
                                                                                            ClassFeat10_hex.BackColor             =
                                                                                                ClassFeat10_bin.BackColor         =
                                                                                                    ClassFeat11_hex.BackColor     =
                                                                                                        ClassFeat11_bin.BackColor = tp_Flags.BackColor;

            ClassFlags_hex.Font                                                                                              =
                ClassFlags_bin.Font                                                                                          =
                    ClassFeat1_hex.Font                                                                                      =
                        ClassFeat1_bin.Font                                                                                  =
                            ClassFeat2_hex.Font                                                                              =
                                ClassFeat2_bin.Font                                                                          =
                                    ClassFeat3_hex.Font                                                                      =
                                        ClassFeat3_bin.Font                                                                  =
                                            ClassFeat4_hex.Font                                                              =
                                                ClassFeat4_bin.Font                                                          =
                                                    ClassFeat5_hex.Font                                                      =
                                                        ClassFeat5_bin.Font                                                  =
                                                            ClassFeat6_hex.Font                                              =
                                                                ClassFeat6_bin.Font                                          =
                                                                    ClassFeat7_hex.Font                                      =
                                                                        ClassFeat7_bin.Font                                  =
                                                                            ClassFeat8_hex.Font                              =
                                                                                ClassFeat8_bin.Font                          =
                                                                                    ClassFeat9_hex.Font                      =
                                                                                        ClassFeat9_bin.Font                  =
                                                                                            ClassFeat10_hex.Font             =
                                                                                                ClassFeat10_bin.Font         =
                                                                                                    ClassFeat11_hex.Font     =
                                                                                                        ClassFeat11_bin.Font = he.FixedFont;

            initCos();


// handlers for Flags ->
            ClassFlags_reset.Click      += Click_classes_reset;
            ClassFlags_text.TextChanged += TextChanged_classes;

            cf_Clear.Click += Click_clear;

            cbo_cf_Ability.SelectionChangeCommitted     += SelectionChangeCommitted_cf_cbo_CasterAbility;
            cbo_cf_BuffOthers.SelectionChangeCommitted  += SelectionChangeCommitted_cf_cbo_BuffOthers;
            cbo_cf_Attack.SelectionChangeCommitted      += SelectionChangeCommitted_cf_cbo_Attack;
            cbo_cf_SpellProg.SelectionChangeCommitted   += SelectionChangeCommitted_cf_cbo_SpellProg;
            cbo_cf_SneakAttack.SelectionChangeCommitted += SelectionChangeCommitted_cf_cbo_SneakAttack;
            cf_rbArcane.MouseClick        += MouseClick_cFlags;
            cf_rbDivine.MouseClick        += MouseClick_cFlags;
            cf_isPrestigeClass.MouseClick += MouseClick_cFlags;
            cf_DcBonus.MouseClick         += MouseClick_cFlags;
            cf_L4Required.MouseClick      += MouseClick_cFlags;

            cf_HasFeatSpells.MouseClick += MouseClick_cFlags;

// handlers for Feats ->
            ClassFeat1_reset.Click  += Click_classes_reset;
            ClassFeat2_reset.Click  += Click_classes_reset;
            ClassFeat3_reset.Click  += Click_classes_reset;
            ClassFeat4_reset.Click  += Click_classes_reset;
            ClassFeat5_reset.Click  += Click_classes_reset;
            ClassFeat6_reset.Click  += Click_classes_reset;
            ClassFeat7_reset.Click  += Click_classes_reset;
            ClassFeat8_reset.Click  += Click_classes_reset;
            ClassFeat9_reset.Click  += Click_classes_reset;
            ClassFeat10_reset.Click += Click_classes_reset;
            ClassFeat11_reset.Click += Click_classes_reset;

            ClassFeat1_text.TextChanged  += TextChanged_classes;
            ClassFeat2_text.TextChanged  += TextChanged_classes;
            ClassFeat3_text.TextChanged  += TextChanged_classes;
            ClassFeat4_text.TextChanged  += TextChanged_classes;
            ClassFeat5_text.TextChanged  += TextChanged_classes;
            ClassFeat6_text.TextChanged  += TextChanged_classes;
            ClassFeat7_text.TextChanged  += TextChanged_classes;
            ClassFeat8_text.TextChanged  += TextChanged_classes;
            ClassFeat9_text.TextChanged  += TextChanged_classes;
            ClassFeat10_text.TextChanged += TextChanged_classes;
            ClassFeat11_text.TextChanged += TextChanged_classes;

            cf1_Clear.Click  += Click_clear;
            cf2_Clear.Click  += Click_clear;
            cf3_Clear.Click  += Click_clear;
            cf4_Clear.Click  += Click_clear;
            cf5_Clear.Click  += Click_clear;
            cf6_Clear.Click  += Click_clear;
            cf7_Clear.Click  += Click_clear;
            cf8_Clear.Click  += Click_clear;
            cf9_Clear.Click  += Click_clear;
            cf10_Clear.Click += Click_clear;
            cf11_Clear.Click += Click_clear;

            cf1_FeatId.TextChanged  += TextChanged_cFeat;
            cf2_FeatId.TextChanged  += TextChanged_cFeat;
            cf3_FeatId.TextChanged  += TextChanged_cFeat;
            cf4_FeatId.TextChanged  += TextChanged_cFeat;
            cf5_FeatId.TextChanged  += TextChanged_cFeat;
            cf6_FeatId.TextChanged  += TextChanged_cFeat;
            cf7_FeatId.TextChanged  += TextChanged_cFeat;
            cf8_FeatId.TextChanged  += TextChanged_cFeat;
            cf9_FeatId.TextChanged  += TextChanged_cFeat;
            cf10_FeatId.TextChanged += TextChanged_cFeat;
            cf11_FeatId.TextChanged += TextChanged_cFeat;

            cf1_SpellId.TextChanged  += TextChanged_cSpell;
            cf2_SpellId.TextChanged  += TextChanged_cSpell;
            cf3_SpellId.TextChanged  += TextChanged_cSpell;
            cf4_SpellId.TextChanged  += TextChanged_cSpell;
            cf5_SpellId.TextChanged  += TextChanged_cSpell;
            cf6_SpellId.TextChanged  += TextChanged_cSpell;
            cf7_SpellId.TextChanged  += TextChanged_cSpell;
            cf8_SpellId.TextChanged  += TextChanged_cSpell;
            cf9_SpellId.TextChanged  += TextChanged_cSpell;
            cf10_SpellId.TextChanged += TextChanged_cSpell;
            cf11_SpellId.TextChanged += TextChanged_cSpell;

            cf1_cheatCast.MouseClick  += MouseClick_cFeats;
            cf2_cheatCast.MouseClick  += MouseClick_cFeats;
            cf3_cheatCast.MouseClick  += MouseClick_cFeats;
            cf4_cheatCast.MouseClick  += MouseClick_cFeats;
            cf5_cheatCast.MouseClick  += MouseClick_cFeats;
            cf6_cheatCast.MouseClick  += MouseClick_cFeats;
            cf7_cheatCast.MouseClick  += MouseClick_cFeats;
            cf8_cheatCast.MouseClick  += MouseClick_cFeats;
            cf9_cheatCast.MouseClick  += MouseClick_cFeats;
            cf10_cheatCast.MouseClick += MouseClick_cFeats;
            cf11_cheatCast.MouseClick += MouseClick_cFeats;

            _he.SelectSearch();
        }
Esempio n. 2
0
        /// <summary>
        /// cTor.
        /// </summary>
        /// <param name="he"></param>
        internal control_Racial(he he)
        {
            InitializeComponent();

            _he = he;

            rf1_FeatLabel.Text                                      =
                rf2_FeatLabel.Text                                  =
                    rf3_FeatLabel.Text                              =
                        rf4_FeatLabel.Text                          =
                            rf5_FeatLabel.Text                      =
                                rf1_SpellLabel.Text                 =
                                    rf2_SpellLabel.Text             =
                                        rf3_SpellLabel.Text         =
                                            rf4_SpellLabel.Text     =
                                                rf5_SpellLabel.Text = String.Empty;

            RacialFlags_hex.BackColor                                             =
                RacialFlags_bin.BackColor                                         =
                    RacialFeat1_hex.BackColor                                     =
                        RacialFeat1_bin.BackColor                                 =
                            RacialFeat2_hex.BackColor                             =
                                RacialFeat2_bin.BackColor                         =
                                    RacialFeat3_hex.BackColor                     =
                                        RacialFeat3_bin.BackColor                 =
                                            RacialFeat4_hex.BackColor             =
                                                RacialFeat4_bin.BackColor         =
                                                    RacialFeat5_hex.BackColor     =
                                                        RacialFeat5_bin.BackColor = tp_Flags.BackColor;

            RacialFlags_hex.Font                                             =
                RacialFlags_bin.Font                                         =
                    RacialFeat1_hex.Font                                     =
                        RacialFeat1_bin.Font                                 =
                            RacialFeat2_hex.Font                             =
                                RacialFeat2_bin.Font                         =
                                    RacialFeat3_hex.Font                     =
                                        RacialFeat3_bin.Font                 =
                                            RacialFeat4_hex.Font             =
                                                RacialFeat4_bin.Font         =
                                                    RacialFeat5_hex.Font     =
                                                        RacialFeat5_bin.Font = he.FixedFont;


// handlers for Flags ->
            RacialFlags_reset.Click      += Click_racial_reset;
            RacialFlags_text.TextChanged += TextChanged_racial;

            rf_Clear.Click += Click_clear;

            rf_HasFeatSpells.MouseClick += MouseClick_rFlags;

// handlers for Feats ->
            RacialFeat1_reset.Click += Click_racial_reset;
            RacialFeat2_reset.Click += Click_racial_reset;
            RacialFeat3_reset.Click += Click_racial_reset;
            RacialFeat4_reset.Click += Click_racial_reset;
            RacialFeat5_reset.Click += Click_racial_reset;

            RacialFeat1_text.TextChanged += TextChanged_racial;
            RacialFeat2_text.TextChanged += TextChanged_racial;
            RacialFeat3_text.TextChanged += TextChanged_racial;
            RacialFeat4_text.TextChanged += TextChanged_racial;
            RacialFeat5_text.TextChanged += TextChanged_racial;

            rf1_Clear.Click += Click_clear;
            rf2_Clear.Click += Click_clear;
            rf3_Clear.Click += Click_clear;
            rf4_Clear.Click += Click_clear;
            rf5_Clear.Click += Click_clear;

            rf1_FeatId.TextChanged += TextChanged_rFeat;
            rf2_FeatId.TextChanged += TextChanged_rFeat;
            rf3_FeatId.TextChanged += TextChanged_rFeat;
            rf4_FeatId.TextChanged += TextChanged_rFeat;
            rf5_FeatId.TextChanged += TextChanged_rFeat;

            rf1_SpellId.TextChanged += TextChanged_rSpell;
            rf2_SpellId.TextChanged += TextChanged_rSpell;
            rf3_SpellId.TextChanged += TextChanged_rSpell;
            rf4_SpellId.TextChanged += TextChanged_rSpell;
            rf5_SpellId.TextChanged += TextChanged_rSpell;

            rf1_cheatCast.MouseClick += MouseClick_rFeats;
            rf2_cheatCast.MouseClick += MouseClick_rFeats;
            rf3_cheatCast.MouseClick += MouseClick_rFeats;
            rf4_cheatCast.MouseClick += MouseClick_rFeats;
            rf5_cheatCast.MouseClick += MouseClick_rFeats;

            _he.SelectSearch();
        }