private void NeuronGroupOptions(object sender, EventArgs e) { Neuron example = new Neuron(net.currentSelection); NeuronInformation nInfo = new NeuronInformation(example); nInfo.ShowDialog(); net.SetSelectionGroupParameters(example); net.ClearSelectionGroup(); Refresh(); }
protected void OnMouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { if ((choosedinputNeuron = GetinputByPosition(e.Location)) != null) { NeuroninputInformation dlg = new NeuroninputInformation(choosedinputNeuron); dlg.ShowDialog(); Refresh(); } else if ((choosedNeuron = GetNeuronByPosition(e.Location)) != null) { NeuronInformation dlg = new NeuronInformation(choosedNeuron); dlg.ShowDialog(); } } }