Esempio n. 1
0
 private void ConvertButton_Click(object sender, EventArgs e)
 {
     idList.Items.Clear();
     GLVLtoS06.listOfIDs.Clear();
     if (!s06toGLVLCheckbox.Checked)
     {
         GLVLtoS06.ConvertSET(filepath, templates, version);
     }
     else
     {
         s06toGLVL.ConvertSET(filepath, outputpath);
         GLVLSetPatcher.Patcher(outputpath, templates);
     }
     tm_UpdateList.Start();
 }
Esempio n. 2
0
        private void PatchButton_Click(object sender, EventArgs e)
        {
            idList.Items.Clear();
            GLVLtoS06.listOfIDs.Clear();
            if (templatesBox.Text.Length != 0)
            {
                GLVLSetPatcher.Patcher(filepath, templates);
            }
            else
            {
                MessageBox.Show("Please select a directory for GLvl Templates.", "Template Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

                VistaFolderBrowserDialog templatesBrowser = new VistaFolderBrowserDialog();
                if (templatesBrowser.ShowDialog() == DialogResult.OK)
                {
                    templates         = templatesBrowser.SelectedPath;
                    templatesBox.Text = templates;
                    CheckIfValid();
                }
            }
            tm_UpdateList.Start();
        }