public MyEngine() { m_iconTimer = new System.Windows.Forms.Timer(); m_iconTimer.Tick += new EventHandler(m_iconTimer_Tick); m_iconTimer.Interval = 500; form_top = new GUI.Form_transparent(); form_top.CmsMatchedGestures.ItemClicked += new ToolStripItemClickedEventHandler(cMS_MatchedGestures_ItemClicked); m_network = new MyNeuralNetwork(); m_network.NetworkStartTraining += new MyNeuralNetwork.DlgEmpty(NetworkStartTraining); m_network.NetworkLearnt += new MyNeuralNetwork.DlgNetworkLearnt(NetworkLearnt); m_mouse = new ExtraMouseHook(); m_mouse.MouseClick += new MouseEventHandler(MyMouse_MouseClick); m_mouse.MouseDown += new MouseEventHandler(MyMouse_MouseDown); m_mouse.MouseDownGesture += new MouseEventHandler(MyMouse_MouseDownGesture); m_mouse.MouseUp += new MouseEventHandler(MyMouse_MouseUp); m_mouse.MouseMove += new MouseEventHandler(MyMouse_MouseMove); m_mouse.MouseStoped += new EventHandler(MyMouse_MouseStoped); m_mouse.HookStateChanged += new ExtraMouseHook.DlgHookStateChanged(HookStateChanged); m_mouse.WheelBtnAction += new ExtraMouseHook.DlgWheelBtnAction(MyMouse_WheelBtnAction); m_mouse.DoubleBtnAction += new ExtraMouseHook.DlgDoubleBtnAction(MyMouse_DoubleBtnAction); //m_mouse.MouseBrowseWheel += new MouseHook.DlgMouseWheelMove(MyMouse_MouseBrowseWheel); autoBehave = new AutoBehave(form_top.Handle); autoBehave.DisableMouse += new AutoBehave.DlgDisableMouse(DisableMouse); }
/// <summary> /// Creates copy of neural network and curves in new instance /// </summary> /// <param name="network"></param> public MyNeuralNetwork(MyNeuralNetwork network) { m_network = new Network(network.m_network); m_curves = new Dictionary <string, ClassicCurve>(); //necessary to do proper copy, otherwise problems with NnIndex (stayed modyfied when Form_modify canceled) foreach (ClassicCurve curve in network.Curves.Values) { m_curves.Add(curve.ID, new ClassicCurve(curve)); } if (network.m_curveSets != null) { m_curveSets = new Dictionary <string, MyCurve>(); foreach (MyCurve curve in network.m_curveSets.Values) { m_curveSets.Add(curve.ID, new MyCurve(curve)); } //m_curveSets = new List<MyCurve>(network.m_curveSets); } }
/// <summary> /// Creates copy of neural network and curves in new instance /// </summary> /// <param name="network"></param> public MyNeuralNetwork(MyNeuralNetwork network) { m_network = new Network(network.m_network); m_curves = new Dictionary<string, ClassicCurve>(); //necessary to do proper copy, otherwise problems with NnIndex (stayed modyfied when Form_modify canceled) foreach (ClassicCurve curve in network.Curves.Values) m_curves.Add(curve.ID, new ClassicCurve(curve)); if (network.m_curveSets != null) { m_curveSets = new Dictionary<string, MyCurve>(); foreach (MyCurve curve in network.m_curveSets.Values) m_curveSets.Add(curve.ID, new MyCurve(curve)); //m_curveSets = new List<MyCurve>(network.m_curveSets); } }