コード例 #1
0
        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();
        }
コード例 #2
0
 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();
         }
     }
 }