private void btncatselecct_Click(object sender, EventArgs e) { try { Cursor.Show(); Cursor.Current = Cursors.WaitCursor; label_tagsaved.Text = string.Empty; if (acfm == null) { acfm = new AllCategoryFormNew(this,null); //acfm = new AllCategory_Form(this); } bCode_Off = true; bCode_Read = true; this.myScanAPI.StopScan(); this.barcode21.EnableScanner = false; acfm.ShowDialog(); Cursor.Show(); Cursor.Current = Cursors.WaitCursor; bCode_Read = true; this.barcode21.EnableScanner = true; this.myScanAPI.StopScan(); bCode_Off = false; acfm.Dispose(); acfm = null; Cursor.Current = Cursors.Default; } catch (Exception ex) { } }
private void btncatselecct_Click(object sender, EventArgs e) { try { Cursor.Show(); Cursor.Current = Cursors.WaitCursor; if (acfm == null) { acfm = new AllCategoryFormNew(null, this); //acfm = new AllCategory_Form(this); } acfm.ShowDialog(); Cursor.Show(); Cursor.Current = Cursors.WaitCursor; acfm.Dispose(); acfm = null; Cursor.Current = Cursors.Default; } catch (Exception ex) { } }