Пример #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Sounds.ButtonClick();

            Program.Modified = true;
            SaveChanges();
            Close();
        }
Пример #2
0
        private void chkEncumbrance_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            Encumbrance = chkEncumbrance.Checked;
        }
Пример #3
0
        private void chkCoinWeight_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            CoinWeight = chkCoinWeight.Checked;
        }
Пример #4
0
        private void chkAnimalCompanion_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            AnimalCompanion = chkAnimalCompanion.Checked;
        }
Пример #5
0
        private void chkTab_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            RememberTab = chkTab.Checked;
        }
Пример #6
0
        private void chkMute_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            Mute = chkMute.Checked;
        }
Пример #7
0
        private void chkAutosave_CheckedChanged(object sender, EventArgs e)
        {
            if (!Drawing)
            {
                Sounds.ButtonClick();
            }

            Autosave = chkAutosave.Checked;

            trkAutosave.Enabled       = Autosave;
            oAutosaveInterval.Enabled = Autosave;
        }
        private void btnDivideLoot_Click(object sender, EventArgs e)
        {
            Player loot;

            Sounds.ButtonClick();
            oDivideLootGrid.Rows.Clear();

            ParsePlayers();
            loot = ParseLoot();

            Distribute(loot);

            FillList();
        }
        private void oUsed9_DoubleClick(object sender, EventArgs e)
        {
            if ((Program.Character.Spellcasting.NineUsed + 1) <= Program.Character.Spellcasting.NineTotal)
            {
                Program.Character.Spellcasting.NineUsed++;
                Program.Modified = true;
                Sounds.ButtonClick();

                if (Program.Character.Spellcasting.NineUsed == Program.Character.Spellcasting.NineTotal)
                {
                    oUsed9.Cursor = Cursors.Default;
                }

                Invalidate();
            }
        }
Пример #10
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            Sounds.ButtonClick();

            Close();
        }
 private void btnReset_Click(object sender, EventArgs e)
 {
     Sounds.ButtonClick();
     DefaultValues();
     oDivideLootGrid.Rows.Clear();
 }