public WUW() { InitializeComponent(); SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true); _rec = new GeometricRecognizer(); _points = new ArrayList(256); _viewFrm = null; }
private void btnView_Click(object sender, EventArgs e) { if (_viewFrm != null && !_viewFrm.IsDisposed) { _viewFrm.Close(); _viewFrm = null; } else { Cursor.Current = Cursors.WaitCursor; _viewFrm = new ViewForm(_rec.Gestures); _viewFrm.Owner = this; _viewFrm.Show(); Cursor.Current = Cursors.Default; } }
private void ReloadViewForm() { if (_viewFrm != null && !_viewFrm.IsDisposed) { _viewFrm.Close(); _viewFrm = new ViewForm(_rec.Gestures); _viewFrm.Owner = this; _viewFrm.Show(); } }