Beispiel #1
0
        private void RecordButton_Click(object sender, EventArgs e)
        {
            if (m_Recording)
            {
                RecordWowPath.StopRecordingPath();
            }
            else
            {
                XTextBox.Text = "";
                YTextBox.Text = "";

                XTextBox.Enabled       = false;
                YTextBox.Enabled       = false;
                LoadFileButton.Enabled = false;
                SaveFileButton.Enabled = false;
                OKButton.Enabled       = false;

                RecordButton.Text      = "Stop Recording";
                RecordButton.BackColor = System.Drawing.Color.FromArgb(255, 255, 128, 128);

                Task.Run(() =>
                {
                    try
                    {
                        RecordWowPath.RecordPath();
                    }
                    catch (Exception err)
                    {
                        MessageBox.Show(err.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                });

                m_Recording = true;
            }
        }
Beispiel #2
0
        private void OptionTabs_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (m_Recording)
            {
                RecordWowPath.StopRecordingPath();
            }

            // OptionTabs.SelectedIndex == 3 "Classes" tab
            if (OptionTabs.SelectedIndex == 3 &&
                WowApi.PlayerData.Class > PlayerClassType.None &&
                WowApi.PlayerData.Class <= PlayerClassType.LastPlayerClass)
            {
                ClassTabs.SelectedIndex = (int)WowApi.PlayerData.Class - 1;
            }
        }