Пример #1
0
        private void mnuOpenRaid_Click(object sender, System.EventArgs e)
        {
            debugLogger.WriteDebug_3("Begin Method: frmMain.mnuOpenRaid_Click(object,EventArgs) (" + sender.ToString() + "," + e.ToString() + ")");

            ChooseRaidDialog raidselect = new ChooseRaidDialog(this);
            if (raidselect.ShowDialog() == DialogResult.OK)
            {
                CurrentRaid = new Raid(this);
                CurrentRaid.RaidDate = DateTime.Parse(raidselect.ReturnDate);
                CurrentRaid.RaidName = raidselect.ReturnRaid;
                CurrentRaid.LoadRaid();
                if (CurrentRaid.DoubleTier) chkDouble.Checked = true;
                else chkDouble.Checked = false;
                panel.Enabled = true;
                dtpRaidDate.Value = CurrentRaid.RaidDate;
                txtRaidName.Text = CurrentRaid.RaidName;
                debugLogger.WriteDebug_1("Raid Loaded: " + CurrentRaid.RaidName + " (" + CurrentRaid.RaidDate.ToString("dd/mm/yyyy") + ")");

                txtRaidName.Enabled = false;
                dtpRaidDate.Enabled = false;
                txtZoneNames.Enabled = true;
                grpItemTier.Enabled = true;
                grpWatchFor.Enabled = true;
                listOfNames.Enabled = true;
                listOfTiers.Enabled = true;
                listOfDKP.Enabled = true;
                listOfAttd.Enabled = true;

                chkWho.Checked = false;
                chkTells.Checked = false;
                chkLoot.Checked = false;

                /*
                parser.TellsOn = false;
                parser.AttendanceOn = false;
                parser.LoadNamesTiers();
                */

                rdoB.Checked = true;

                raidselect.Dispose();
            }

            debugLogger.WriteDebug_3("End Method: frmMain.mnuOpenRaid_Click()");
        }
Пример #2
0
        private void mnuNewRaid_Click(object sender, System.EventArgs e)
        {
            debugLogger.WriteDebug_3("Begin Method: frmMain.mnuNewRaid_Click(object,EventArgs) (" + sender.ToString() + "," + e.ToString() + ")");

            CurrentRaid = new Raid(this);
            CurrentRaid.RaidDate = System.DateTime.Today;
            CurrentRaid.RaidName = "";
            panel.Enabled = true;
            txtRaidName.Text = CurrentRaid.RaidName;
            dtpRaidDate.Value = CurrentRaid.RaidDate;
            chkDouble.Checked = false;
            txtRaidName.Enabled = true;
            dtpRaidDate.Enabled = true;
            txtZoneNames.Enabled = true;
            grpWatchFor.Enabled = true;
            grpItemTier.Enabled = true;
            listOfNames.Enabled = true;
            listOfTiers.Enabled = true;
            listOfDKP.Enabled = true;
            listOfAttd.Enabled = true;
            rdoB.Checked = true;

            chkWho.Checked = false;
            chkTells.Checked = false;
            chkLoot.Checked = false;

            /*
            parser.TellsOn = false;
            parser.AttendanceOn = false;
            parser.LootOn = false;
            */
            parser.LoadNamesTiers();

            debugLogger.WriteDebug_1("New Raid Created.  Name: " + CurrentRaid.RaidName + " Date: " + CurrentRaid.RaidDate.ToString("dd MMM yyyy"));

            debugLogger.WriteDebug_3("End Method: frmMain.mnuNewRaid_Click()");
        }