public void OnPress(Object sender, EventArgs e) { if (e.GetType().Equals(typeof(MediaEventArgs))) { MediaEventArgs m = (MediaEventArgs)e; this._VMPanel.PlaybackControl(m); } else if (e.GetType().Equals(typeof(GraphEventArgs))) { GraphEventArgs m = (GraphEventArgs)e; this._VMPanel.GraphControls(m); } }
public void GraphControls(GraphEventArgs m) { string desctiption = m.getDescription(); if (desctiption == "ClickDLL") { ClickDLL(); } else if (desctiption == "SelectedAnomaly") { SelectedAnomaly(m.getValue()); } }