Exemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            if(textBox1.Text == string.Empty)
            {
                MessageBox.Show("Please set your MapleStory folder path!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                List<string> downloadLinks = checkForUpdates();

                if (downloadLinks != null && downloadLinks.Count == 0)
                {
                    MessageBox.Show("No updates found!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (downloadLinks != null)
                {
                    if (MessageBox.Show("An update is required! Do you want to update now?", "Info", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                    {
                        Update newFrm = new Update();

                        newFrm.maplePath = textBox1.Text + @"\";
                        newFrm.downloadLinks = downloadLinks;
                        newFrm.backupWZ = checkBox1.Checked;
                        newFrm.Show();
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void launch()
        {
            List<string> downloadLinks = checkForUpdates();

            if (downloadLinks != null && downloadLinks.Count == 0)
            {
                Process.Start(textBox1.Text + @"\" + Launcher.Settings.clientName);
            }
            else if(downloadLinks != null)
            {
                if (MessageBox.Show("An update is required! Do you want to update now?", "Info", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
                {
                    Update newFrm = new Update();

                    newFrm.maplePath = textBox1.Text + @"\";
                    newFrm.downloadLinks = downloadLinks;
                    newFrm.backupWZ = checkBox1.Checked;
                    newFrm.Show();
                }
            }
        }