private void but_gui_Click(object sender, EventArgs e) { try { DevComponents.DotNetBar.ButtonX bt = (DevComponents.DotNetBar.ButtonX)sender; int g = Convert.ToInt32(bt.Name.Substring(3)); V_HouseSetCs.HouseGui = g; T_Sysset.GetHouseGuiCs(); StoreView st = new StoreView { ShowInTaskbar = true }; st.Show(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }