private void FeatureEditBtn_Click(object sender, EventArgs e) { if (this.SelectedInformation != null) { int information = this.fCreatureLore.Information.IndexOf(this.SelectedInformation); OptionInformationForm optionInformationForm = new OptionInformationForm(this.SelectedInformation); if (optionInformationForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.fCreatureLore.Information[information] = optionInformationForm.Information; this.update_information(); } } }
private void FeatureEditBtn_Click(object sender, EventArgs e) { if (SelectedInformation != null) { int index = fCreatureLore.Information.IndexOf(SelectedInformation); OptionInformationForm dlg = new OptionInformationForm(SelectedInformation); if (dlg.ShowDialog() == DialogResult.OK) { fCreatureLore.Information[index] = dlg.Information; update_information(); } } }
private void AddBtn_Click(object sender, EventArgs e) { Pair <int, string> pair = new Pair <int, string>() { First = 10, Second = "" }; OptionInformationForm optionInformationForm = new OptionInformationForm(pair); if (optionInformationForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.fCreatureLore.Information.Add(optionInformationForm.Information); this.update_information(); } }
private void AddBtn_Click(object sender, EventArgs e) { Pair <int, string> information = new Pair <int, string>(); information.First = 10; information.Second = ""; OptionInformationForm dlg = new OptionInformationForm(information); if (dlg.ShowDialog() == DialogResult.OK) { fCreatureLore.Information.Add(dlg.Information); update_information(); } }