Originally posted by michaelp
I guess it's some serious bug in .NET
private void TSB_AddBrain_Click(object sender, EventArgs e)
{
if ((new BrainForm()).ShowDialog(this) == DialogResult.OK)
{
//Add it to the main list
}
}
private void BTN_SEARCHBRAIN_Click(object sender, EventArgs e)
{
(new AutoSearchBrains()).ShowDialog();
}
#region Cancel Button Clicked
private void BTN_CANCEL_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
#endregion
#region Save Button Clicked
private void BTN_SAVE_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
if (LISTBOX_AllBrains.SelectedItem != null)
{
SendAutoBrain(FoundBrains[LISTBOX_AllBrains.SelectedIndex]);
}
else
{
ErrorForm _tempError = new ErrorForm("Select a Fusion Brain", "Please Select a Fusion Brain Instance from the list");
_tempError.ShowDialog();
return;
}
this.Close();
}
#endregion
private void button1_Click(object sender, EventArgs e)
{
(new Form2()).ShowDialog();
}
private void button1_Click(object sender, EventArgs e)
{
(new Form3()).ShowDialog();
}
private void button1_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
Leave a comment: