private void btn_inv_Click(object sender, EventArgs e) { if (Program.appSetting.tagGroup.selected != CSLibrary.Constants.Selected.ALL) { MessageBox.Show("Warning : MASK IS SET !!!"); } this.Hide(); using (TagInventoryForm InvForm = new TagInventoryForm(false)) //using (TagInventoryWithSyncQueue InvForm = new TagInventoryWithSyncQueue()) { InvForm.ShowDialog(); } UpdatePower(); this.Show(); }