private void mButton2_Click(object sender, EventArgs e) { var tags = checkBox13.Checked ? new string[0] : GetTags(); if (tags.Count() == 0 && !checkBox13.Checked) { GUI.MessageBox.Show("You should choose at least one tag!\n(or check the \"Upload without tags\" option)"); return; } if (string.IsNullOrWhiteSpace(textBox1.Text)) { GUI.MessageBox.Show("Please, enter the changelog!"); return; } store.UploadUnCookedContent = checkBox1.Checked; store.UploadScripts = checkBox2.Checked; store.Tags = tags; store.Visibility = comboBox3.SelectedIndex; store.Changelog = textBox1.Text; store.ForceNoTags = checkBox13.Checked; store.SaveForMod(mod); Program.Uploader.UploadModAsync(mod, textBox1.Text, store.Tags, checkBox1.Checked, checkBox2.Checked, comboBox3.SelectedIndex, store.UseSeparateDescriptionForSteam ? store.GetDescription() : mod.GetDescription()); this.Close(); }