Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (wowPathInput.Text != "")
            {
                if (System.IO.File.Exists(wowPathInput.Text + "\\wow.exe") == true)
                {
                    WriteSettingsFile xmlWrite = new WriteSettingsFile();
                    xmlWrite.Load();

                    xmlWrite.SetWoWPath(wowPathInput.Text);
                    if (startUpSoundCheckBox.Checked == true)
                    {
                        xmlWrite.SetStartUpSound(true);
                    }
                    else
                    {
                        xmlWrite.SetStartUpSound(false);
                    }

                    if (minimizeToTrayCheckBox.Checked == true)
                    {
                        xmlWrite.MinimizeToTray(true);
                    }
                    else
                    {
                        xmlWrite.MinimizeToTray(false);
                    }

                    Form3.ActiveForm.Hide();
                }
                else
                {
                    MessageBox.Show("ERROR: can't find wow.exe in: \n\n '" + wowPathInput.Text + "\' \n\n Please choose another directory.", "Error!");
                }
            }
            else
            {
                ToolTip errorTip = new ToolTip();
                errorTip.IsBalloon = true;
                errorTip.Show("Field cannot be empty!", wowPathInput, 5, -35, 1500);
                //wowPathInput.
            }
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (wowPathInput.Text != "")
            {
                if (System.IO.File.Exists(wowPathInput.Text + "\\wow.exe") == true)
                {
                    WriteSettingsFile xmlWrite = new WriteSettingsFile();
                    xmlWrite.Load();

                    xmlWrite.SetWoWPath(wowPathInput.Text);
                    if (startUpSoundCheckBox.Checked == true)
                    {
                        xmlWrite.SetStartUpSound(true);
                    }
                    else
                    {
                        xmlWrite.SetStartUpSound(false);
                    }

                    if (minimizeToTrayCheckBox.Checked == true)
                    {
                        xmlWrite.MinimizeToTray(true);
                    }
                    else
                    {
                        xmlWrite.MinimizeToTray(false);
                    }

                    Form3.ActiveForm.Hide();
                }
                else
                {
                    MessageBox.Show("ERROR: can't find wow.exe in: \n\n '" + wowPathInput.Text + "\' \n\n Please choose another directory.", "Error!");
                }
            }
            else
            {
                ToolTip errorTip = new ToolTip();
                errorTip.IsBalloon = true;
                errorTip.Show("Field cannot be empty!", wowPathInput, 5, -35, 1500);
                //wowPathInput.
            }
        }