Exemplo n.º 1
0
 private void lblValueGold_Click(object sender, EventArgs e)
 {
     FormController.LblMakeVisible(this, true, "lblStatsValue");
     lblStatsValueGold.Visible = false;
     FormController.TbxMakeVisible(this, false, "tbxStatsSet");
     FormController.BtnMakeVisible(this, false, "btnStatsSet");
     tbxStatsSetGold.Visible = true;
     btnStatsSetGold.Visible = true;
     tbxStatsSetGold.Text    = DataStorage.PartyCharacters[_currentCharacter].Gold.ToString();
     tbxStatsSetGold.Focus();
 }
Exemplo n.º 2
0
        private void ClickLabel(Label lbl, Button btn, TextBox tbx)
        {
            FormController.LblMakeVisible(this, true, "lblStatsValue");
            FormController.TbxMakeVisible(this, false, "tbxStatsSet");
            FormController.BtnMakeVisible(this, false, "btnStatsSet");

            lbl.Visible = false;
            btn.Visible = false;
            tbx.Visible = true;
            tbx.Focus();
            AcceptButton = btn;
        }
Exemplo n.º 3
0
 // Spell slots
 #region Spell slots
 private void lblStatsValueSpellSlot1stLevel_Click(object sender, EventArgs e)
 {
     FormController.LblMakeVisible(this, true, "lblStatsValue");
     FormController.TbxMakeVisible(this, false, "tbxStatsSet");
     FormController.BtnMakeVisible(this, false, "btnStatsSet");
     lblStatsValueSpellSlot1stLevel.Visible = false;
     btnStatsCastSpellSlots1stLevel.Visible = false;
     btnStatsSetSpellSlots1stLevel.Visible  = true;
     tbxStatsSetSpellSlot1stLevel.Visible   = true;
     tbxStatsSetSpellSlot1stLevel.Text      = DataStorage.PartyCharacters[_currentCharacter].SpellSlots1stLevelCurrent.ToString();
     tbxStatsSetSpellSlot1stLevel.Focus();
     AcceptButton = btnStatsSetSpellSlots1stLevel;
 }