private void ReloadViewForm() { if (_viewFrm != null && !_viewFrm.IsDisposed) { _viewFrm.Close(); _viewFrm = new ViewForm(_rec.Gestures); _viewFrm.Owner = this; _viewFrm.Show(); } }
private void ViewGesture_Click(object sender, System.EventArgs e) { if (_viewFrm != null && !_viewFrm.IsDisposed) { _viewFrm.Close(); _viewFrm = null; } else { _viewFrm = new ViewForm(_rec.Gestures); _viewFrm.Owner = this; _viewFrm.Show(); } }