ThePeriodicTable.cs 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738
  1. using System;
  2. using System.Drawing;
  3. using System.IO;
  4. using System.Reflection;
  5. using System.Windows.Forms;
  6. namespace OTSPeriodicTable
  7. {
  8. public partial class ThePeriodicTable : UserControl
  9. {
  10. #region 加载
  11. public ThePeriodicTable()
  12. {
  13. InitializeComponent();
  14. }
  15. private void ThePeriodicTable_Load(object sender, EventArgs e)
  16. {
  17. this.DoubleBuffered = true;
  18. //为了美观,先隐藏
  19. panel1.Hide();
  20. //加载基本元素组
  21. initelements();
  22. //然后再显示,小的元素
  23. Show_User_element();
  24. //刷新也没有效果
  25. panel1.Refresh();
  26. //再显示
  27. panel1.Show();
  28. //图片加载
  29. picturebox_fscl();
  30. }
  31. #endregion
  32. #region 元素周期表,元素群组信息加载
  33. public void initelements()
  34. {
  35. //9种颜色:
  36. //Non-Metals 颜色 PaleGoldenrod 如元素(1)
  37. //Alkali Earth 颜色 Yellow 如元素(3)
  38. //Alkaline Earth 颜色 Orchid 如元素(4)
  39. //Transltion Metals 颜色 Red 如元素(21)
  40. //Other Metals 颜色 PaleGreen 如元素(13)
  41. //Metalloids 颜色 Gold 如元素(5)
  42. //Halogens 颜色 Lavender 如元素(9)
  43. //Noble Gases 颜色 CornflowerBlue 如元素(2)
  44. //
  45. Color NonMetalsColor = Color.PaleGoldenrod; //非金属 如元素(1)
  46. Color AlkaliEarthColor = Color.Yellow; //碱土 如元素(3)
  47. Color AlkalineEarthColor = Color.Orchid; //碱土金属 如元素(4)
  48. Color TransltionMetalsColor = Color.Red; //过渡金属 如元素(21)
  49. Color OtherMetalsColor = Color.PaleGreen; //其它金属 如元素(13)
  50. Color MetalloidsColor = Color.Gold; //非金属 如元素(5)
  51. Color HalogensColor = Color.LightSteelBlue; //卤素 如元素(9)
  52. Color NobleGasesColor = Color.CornflowerBlue;//惰性气体 如元素(2)
  53. Color RareEarthColor = Color.Gainsboro; //罕见 如元素(57)
  54. //都显示成一个灰色
  55. //Color NonMetalsColor = Color.Gainsboro; //非金属 如元素(1)
  56. //Color AlkaliEarthColor = Color.Gainsboro; //碱土 如元素(3)
  57. //Color AlkalineEarthColor = Color.Gainsboro; //碱土金属 如元素(4)
  58. //Color TransltionMetalsColor = Color.Gainsboro; //过渡金属 如元素(21)
  59. //Color OtherMetalsColor = Color.Gainsboro; //其它金属 如元素(13)
  60. //Color MetalloidsColor = Color.Gainsboro; //非金属 如元素(5)
  61. //Color HalogensColor = Color.Gainsboro; //卤素 如元素(9)
  62. //Color NobleGasesColor = Color.Gainsboro;//惰性气体 如元素(2)
  63. //Color RareEarthColor = Color.Gainsboro; //罕见 如元素(57)
  64. Assembly a = Assembly.GetExecutingAssembly();
  65. string[] resNames = a.GetManifestResourceNames();
  66. Stream imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubic.gif");
  67. Image img_cubic = Bitmap.FromStream(imgStream2) as Bitmap;
  68. img_cubic.Tag = "cubic";
  69. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubicbodycentered.gif");
  70. Image img_cubicbodycentered = Bitmap.FromStream(imgStream2) as Bitmap;
  71. img_cubicbodycentered.Tag = "img_cubicbodycentered";
  72. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubicfacecentered.gif");
  73. Image img_cubicfacecentered = Bitmap.FromStream(imgStream2) as Bitmap;
  74. img_cubicfacecentered.Tag = "img_cubicfacecentered";
  75. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.Hexagonal.gif");
  76. Image img_Hexagonal = Bitmap.FromStream(imgStream2) as Bitmap;
  77. img_Hexagonal.Tag = "img_Hexagonal";
  78. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.Monoclinic.gif");
  79. Image img_Monoclinic = Bitmap.FromStream(imgStream2) as Bitmap;
  80. img_Monoclinic.Tag = "img_Monoclinic";
  81. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.orthohombic.gif");
  82. Image img_orthohombic = Bitmap.FromStream(imgStream2) as Bitmap;
  83. img_orthohombic.Tag = "img_orthohombic";
  84. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.rhombohedral.gif");
  85. Image img_rhombohedral = Bitmap.FromStream(imgStream2) as Bitmap;
  86. img_rhombohedral.Tag = "img_rhombohedral";
  87. imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.teragonal.gif");
  88. Image img_teragonal = Bitmap.FromStream(imgStream2) as Bitmap;
  89. img_teragonal.Tag = "img_teragonal";
  90. User_Element ue = new User_Element();
  91. ue.lb_xh.Text = "1";
  92. ue.lb_yzzl.Text = "1.008";
  93. ue.lb_fh.Text = "H";
  94. ue.lb_ywm.Text = "Hydrogen";
  95. ue.lb_sx1.Text = "";
  96. ue.lb_sx2.Text = "";
  97. ue.lb_sx3.Text = "";
  98. ue.zwysm = "氢";
  99. ue.BackColor = NonMetalsColor;
  100. ue.pictureBox1.Image = img_Hexagonal;
  101. ue.Hide();
  102. p_element1.Controls.Add(ue);
  103. //
  104. ue = new User_Element();
  105. ue.lb_xh.Text = "2";
  106. ue.lb_yzzl.Text = "4.003";
  107. ue.lb_fh.Text = "He";
  108. ue.lb_ywm.Text = "Helium";
  109. ue.lb_sx1.Text = "";
  110. ue.lb_sx2.Text = "";
  111. ue.lb_sx3.Text = "";
  112. ue.zwysm = "氦";
  113. ue.BackColor = NobleGasesColor;
  114. ue.pictureBox1.Image = img_Hexagonal;
  115. ue.Hide();
  116. p_element2.Controls.Add(ue);
  117. //
  118. ue = new User_Element();
  119. ue.lb_xh.Text = "3";
  120. ue.lb_yzzl.Text = "6.941";
  121. ue.lb_fh.Text = "Li";
  122. ue.lb_ywm.Text = "Lithium";
  123. ue.lb_sx1.Text = "";
  124. ue.lb_sx2.Text = "";
  125. ue.lb_sx3.Text = "";
  126. ue.zwysm = "锂";
  127. ue.BackColor = AlkaliEarthColor;
  128. ue.pictureBox1.Image = img_cubicbodycentered;
  129. ue.Hide();
  130. p_element3.Controls.Add(ue);
  131. //
  132. ue = new User_Element();
  133. ue.lb_xh.Text = "4";
  134. ue.lb_yzzl.Text = "9.012";
  135. ue.lb_fh.Text = "Be";
  136. ue.lb_ywm.Text = "Beryllium";
  137. ue.lb_sx1.Text = "0.108";
  138. ue.lb_sx2.Text = "-";
  139. ue.lb_sx3.Text = "-";
  140. ue.zwysm = "铍";
  141. ue.BackColor = AlkalineEarthColor;
  142. ue.pictureBox1.Image = img_Hexagonal;
  143. ue.Hide();
  144. p_element4.Controls.Add(ue);
  145. //
  146. ue = new User_Element();
  147. ue.lb_xh.Text = "5";
  148. ue.lb_yzzl.Text = "10.811";
  149. ue.lb_fh.Text = "B";
  150. ue.lb_ywm.Text = "Boron";
  151. ue.lb_sx1.Text = "0.185";
  152. ue.lb_sx2.Text = "-";
  153. ue.lb_sx3.Text = "-";
  154. ue.zwysm = "硼";
  155. ue.BackColor = MetalloidsColor;
  156. ue.pictureBox1.Image = img_rhombohedral;
  157. ue.Hide();
  158. p_element5.Controls.Add(ue);
  159. //
  160. ue = new User_Element();
  161. ue.lb_xh.Text = "6";
  162. ue.lb_yzzl.Text = "12.011";
  163. ue.lb_fh.Text = "C";
  164. ue.lb_ywm.Text = "Carbon";
  165. ue.lb_sx1.Text = "0.277";
  166. ue.lb_sx2.Text = "-";
  167. ue.lb_sx3.Text = "-";
  168. ue.zwysm = "碳";
  169. ue.BackColor = NonMetalsColor;
  170. ue.pictureBox1.Image = img_Hexagonal;
  171. ue.Hide();
  172. p_element6.Controls.Add(ue);
  173. //
  174. ue = new User_Element();
  175. ue.lb_xh.Text = "7";
  176. ue.lb_yzzl.Text = "14.007";
  177. ue.lb_fh.Text = "N";
  178. ue.lb_ywm.Text = "Nitrogen";
  179. ue.lb_sx1.Text = "0.392";
  180. ue.lb_sx2.Text = "-";
  181. ue.lb_sx3.Text = "-";
  182. ue.zwysm = "氮";
  183. ue.BackColor = NonMetalsColor;
  184. ue.pictureBox1.Image = img_Hexagonal;
  185. ue.Hide();
  186. p_element7.Controls.Add(ue);
  187. //
  188. ue = new User_Element();
  189. ue.lb_xh.Text = "8";
  190. ue.lb_yzzl.Text = "15.999";
  191. ue.lb_fh.Text = "O";
  192. ue.lb_ywm.Text = "Oxygen";
  193. ue.lb_sx1.Text = "0.523";
  194. ue.lb_sx2.Text = "-";
  195. ue.lb_sx3.Text = "-";
  196. ue.zwysm = "氧";
  197. ue.BackColor = NonMetalsColor;
  198. ue.pictureBox1.Image = img_cubic;
  199. ue.Hide();
  200. p_element8.Controls.Add(ue);
  201. //
  202. ue = new User_Element();
  203. ue.lb_xh.Text = "9";
  204. ue.lb_yzzl.Text = "18.998";
  205. ue.lb_fh.Text = "F";
  206. ue.lb_ywm.Text = "Fluorine";
  207. ue.lb_sx1.Text = "0.677";
  208. ue.lb_sx2.Text = "-";
  209. ue.lb_sx3.Text = "-";
  210. ue.zwysm = "氟";
  211. ue.BackColor = HalogensColor;
  212. ue.pictureBox1.Image = img_cubic;
  213. ue.Hide();
  214. p_element9.Controls.Add(ue);
  215. //
  216. ue = new User_Element();
  217. ue.lb_xh.Text = "10";
  218. ue.lb_yzzl.Text = "20.180";
  219. ue.lb_fh.Text = "Ne";
  220. ue.lb_ywm.Text = "Neon";
  221. ue.lb_sx1.Text = "0.848";
  222. ue.lb_sx2.Text = "-";
  223. ue.lb_sx3.Text = "-";
  224. ue.zwysm = "氖";
  225. ue.BackColor = NobleGasesColor;
  226. ue.pictureBox1.Image = img_cubicfacecentered;
  227. ue.Hide();
  228. p_element10.Controls.Add(ue);
  229. //
  230. ue = new User_Element();
  231. ue.lb_xh.Text = "11";
  232. ue.lb_yzzl.Text = "22.990";
  233. ue.lb_fh.Text = "Na";
  234. ue.lb_ywm.Text = "Sodium";
  235. ue.lb_sx1.Text = "1.040";
  236. ue.lb_sx2.Text = "-";
  237. ue.lb_sx3.Text = "-";
  238. ue.zwysm = "钠";
  239. ue.BackColor = AlkaliEarthColor;
  240. ue.pictureBox1.Image = img_cubicbodycentered;
  241. ue.Hide();
  242. p_element11.Controls.Add(ue);
  243. //
  244. ue = new User_Element();
  245. ue.lb_xh.Text = "12";
  246. ue.lb_yzzl.Text = "24.305";
  247. ue.lb_fh.Text = "Mg";
  248. ue.lb_ywm.Text = "Magnesium";
  249. ue.lb_sx1.Text = "1.254";
  250. ue.lb_sx2.Text = "-";
  251. ue.lb_sx3.Text = "-";
  252. ue.zwysm = "镁";
  253. ue.BackColor = AlkalineEarthColor;
  254. ue.pictureBox1.Image = img_Hexagonal;
  255. ue.Hide();
  256. p_element12.Controls.Add(ue);
  257. //
  258. ue = new User_Element();
  259. ue.lb_xh.Text = "13";
  260. ue.lb_yzzl.Text = "26.982";
  261. ue.lb_fh.Text = "Al";
  262. ue.lb_ywm.Text = "Aluminum";
  263. ue.lb_sx1.Text = "1.486";
  264. ue.lb_sx2.Text = "-";
  265. ue.lb_sx3.Text = "-";
  266. ue.zwysm = "铝";
  267. ue.BackColor = OtherMetalsColor;
  268. ue.pictureBox1.Image = img_cubicfacecentered;
  269. ue.Hide();
  270. p_element13.Controls.Add(ue);
  271. //
  272. ue = new User_Element();
  273. ue.lb_xh.Text = "14";
  274. ue.lb_yzzl.Text = "28.086";
  275. ue.lb_fh.Text = "Si";
  276. ue.lb_ywm.Text = "Silicon";
  277. ue.lb_sx1.Text = "1.740";
  278. ue.lb_sx2.Text = "-";
  279. ue.lb_sx3.Text = "-";
  280. ue.zwysm = "硅";
  281. ue.BackColor = MetalloidsColor;
  282. ue.pictureBox1.Image = img_cubicfacecentered;
  283. ue.Hide();
  284. p_element14.Controls.Add(ue);
  285. //
  286. ue = new User_Element();
  287. ue.lb_xh.Text = "15";
  288. ue.lb_yzzl.Text = "30.974";
  289. ue.lb_fh.Text = "P";
  290. ue.lb_ywm.Text = "Phosphorus";
  291. ue.lb_sx1.Text = "2.013";
  292. ue.lb_sx2.Text = "-";
  293. ue.lb_sx3.Text = "-";
  294. ue.zwysm = "磷";
  295. ue.BackColor = NonMetalsColor;
  296. ue.pictureBox1.Image = img_Monoclinic;
  297. ue.Hide();
  298. p_element15.Controls.Add(ue);
  299. //
  300. ue = new User_Element();
  301. ue.lb_xh.Text = "16";
  302. ue.lb_yzzl.Text = "32.066";
  303. ue.lb_fh.Text = "S";
  304. ue.lb_ywm.Text = "Sulfur";
  305. ue.lb_sx1.Text = "2.307";
  306. ue.lb_sx2.Text = "-";
  307. ue.lb_sx3.Text = "-";
  308. ue.zwysm = "硫";
  309. ue.BackColor = NonMetalsColor;
  310. ue.pictureBox1.Image = img_orthohombic;
  311. ue.Hide();
  312. p_element16.Controls.Add(ue);
  313. //
  314. ue = new User_Element();
  315. ue.lb_xh.Text = "17";
  316. ue.lb_yzzl.Text = "35.453";
  317. ue.lb_fh.Text = "Cl";
  318. ue.lb_ywm.Text = "Chlorine";
  319. ue.lb_sx1.Text = "2.622";
  320. ue.lb_sx2.Text = "-";
  321. ue.lb_sx3.Text = "-";
  322. ue.zwysm = "氯";
  323. ue.BackColor = HalogensColor;
  324. ue.pictureBox1.Image = img_orthohombic;
  325. ue.Hide();
  326. p_element17.Controls.Add(ue);
  327. //
  328. ue = new User_Element();
  329. ue.lb_xh.Text = "18";
  330. ue.lb_yzzl.Text = "39.948";
  331. ue.lb_fh.Text = "Ar";
  332. ue.lb_ywm.Text = "Argon";
  333. ue.lb_sx1.Text = "2.957";
  334. ue.lb_sx2.Text = "-";
  335. ue.lb_sx3.Text = "-";
  336. ue.zwysm = "氩";
  337. ue.BackColor = NobleGasesColor;
  338. ue.pictureBox1.Image = img_cubicfacecentered;
  339. ue.Hide();
  340. p_element18.Controls.Add(ue);
  341. //
  342. ue = new User_Element();
  343. ue.lb_xh.Text = "19";
  344. ue.lb_yzzl.Text = "39.098";
  345. ue.lb_fh.Text = "K";
  346. ue.lb_ywm.Text = "Potassium";
  347. ue.lb_sx1.Text = "3.313";
  348. ue.lb_sx2.Text = "-";
  349. ue.lb_sx3.Text = "-";
  350. ue.zwysm = "钾";
  351. ue.BackColor = AlkaliEarthColor;
  352. ue.pictureBox1.Image = img_cubicbodycentered;
  353. ue.Hide();
  354. p_element19.Controls.Add(ue);
  355. //
  356. ue = new User_Element();
  357. ue.lb_xh.Text = "20";
  358. ue.lb_yzzl.Text = "40.08";
  359. ue.lb_fh.Text = "Ca";
  360. ue.lb_ywm.Text = "Calcium";
  361. ue.lb_sx1.Text = "3.691";
  362. ue.lb_sx2.Text = "0.341";
  363. ue.lb_sx3.Text = "-";
  364. ue.zwysm = "钙";
  365. ue.BackColor = AlkalineEarthColor;
  366. ue.pictureBox1.Image = img_cubicfacecentered;
  367. ue.Hide();
  368. p_element20.Controls.Add(ue);
  369. //
  370. ue = new User_Element();
  371. ue.lb_xh.Text = "21";
  372. ue.lb_yzzl.Text = "44.956";
  373. ue.lb_fh.Text = "Sc";
  374. ue.lb_ywm.Text = "Scandium";
  375. ue.lb_sx1.Text = "4.090";
  376. ue.lb_sx2.Text = "0.395";
  377. ue.lb_sx3.Text = "-";
  378. ue.zwysm = "钪";
  379. ue.BackColor = TransltionMetalsColor;
  380. ue.pictureBox1.Image = img_Hexagonal;
  381. ue.Hide();
  382. p_element21.Controls.Add(ue);
  383. //
  384. ue = new User_Element();
  385. ue.lb_xh.Text = "22";
  386. ue.lb_yzzl.Text = "47.88";
  387. ue.lb_fh.Text = "Ti";
  388. ue.lb_ywm.Text = "Titanium";
  389. ue.lb_sx1.Text = "4.510";
  390. ue.lb_sx2.Text = "0.452";
  391. ue.lb_sx3.Text = "-";
  392. ue.zwysm = "钛";
  393. ue.BackColor = TransltionMetalsColor;
  394. ue.pictureBox1.Image = img_Hexagonal;
  395. ue.Hide();
  396. p_element22.Controls.Add(ue);
  397. //
  398. ue = new User_Element();
  399. ue.lb_xh.Text = "23";
  400. ue.lb_yzzl.Text = "50.942";
  401. ue.lb_fh.Text = "V";
  402. ue.lb_ywm.Text = "Vanadium";
  403. ue.lb_sx1.Text = "4.952";
  404. ue.lb_sx2.Text = "0.511";
  405. ue.lb_sx3.Text = "-";
  406. ue.zwysm = "钒";
  407. ue.BackColor = TransltionMetalsColor;
  408. ue.pictureBox1.Image = img_cubicbodycentered;
  409. ue.Hide();
  410. p_element23.Controls.Add(ue);
  411. //
  412. ue = new User_Element();
  413. ue.lb_xh.Text = "24";
  414. ue.lb_yzzl.Text = "51.996";
  415. ue.lb_fh.Text = "Cr";
  416. ue.lb_ywm.Text = "Chromium";
  417. ue.lb_sx1.Text = "5.414";
  418. ue.lb_sx2.Text = "0.573";
  419. ue.lb_sx3.Text = "-";
  420. ue.zwysm = "铬";
  421. ue.BackColor = TransltionMetalsColor;
  422. ue.pictureBox1.Image = img_cubicbodycentered;
  423. ue.Hide();
  424. p_element24.Controls.Add(ue);
  425. //
  426. ue = new User_Element();
  427. ue.lb_xh.Text = "25";
  428. ue.lb_yzzl.Text = "54.938";
  429. ue.lb_fh.Text = "Mn";
  430. ue.lb_ywm.Text = "Manganese";
  431. ue.lb_sx1.Text = "5.898";
  432. ue.lb_sx2.Text = "0.637";
  433. ue.lb_sx3.Text = "-";
  434. ue.zwysm = "锰";
  435. ue.BackColor = TransltionMetalsColor;
  436. ue.pictureBox1.Image = img_cubicbodycentered;
  437. ue.Hide();
  438. p_element25.Controls.Add(ue);
  439. //
  440. ue = new User_Element();
  441. ue.lb_xh.Text = "26";
  442. ue.lb_yzzl.Text = "55.847";
  443. ue.lb_fh.Text = "Fe";
  444. ue.lb_ywm.Text = "Iron";
  445. ue.lb_sx1.Text = "6.403";
  446. ue.lb_sx2.Text = "0.705";
  447. ue.lb_sx3.Text = "-";
  448. ue.zwysm = "铁";
  449. ue.BackColor = TransltionMetalsColor;
  450. ue.pictureBox1.Image = img_cubicbodycentered;
  451. ue.Hide();
  452. p_element26.Controls.Add(ue);
  453. //
  454. ue = new User_Element();
  455. ue.lb_xh.Text = "27";
  456. ue.lb_yzzl.Text = "58.933";
  457. ue.lb_fh.Text = "Co";
  458. ue.lb_ywm.Text = "Cobalt";
  459. ue.lb_sx1.Text = "6.929";
  460. ue.lb_sx2.Text = "0.776";
  461. ue.lb_sx3.Text = "-";
  462. ue.zwysm = "钴";
  463. ue.BackColor = TransltionMetalsColor;
  464. ue.pictureBox1.Image = img_Hexagonal;
  465. ue.Hide();
  466. p_element27.Controls.Add(ue);
  467. //
  468. ue = new User_Element();
  469. ue.lb_xh.Text = "28";
  470. ue.lb_yzzl.Text = "58.70";
  471. ue.lb_fh.Text = "Ni";
  472. ue.lb_ywm.Text = "Nickel";
  473. ue.lb_sx1.Text = "7.477";
  474. ue.lb_sx2.Text = "0.851";
  475. ue.lb_sx3.Text = "-";
  476. ue.zwysm = "镍";
  477. ue.BackColor = TransltionMetalsColor;
  478. ue.pictureBox1.Image = img_cubicfacecentered;
  479. ue.Hide();
  480. p_element28.Controls.Add(ue);
  481. //
  482. ue = new User_Element();
  483. ue.lb_xh.Text = "29";
  484. ue.lb_yzzl.Text = "63.546";
  485. ue.lb_fh.Text = "Cu";
  486. ue.lb_ywm.Text = "Copper";
  487. ue.lb_sx1.Text = "8.040";
  488. ue.lb_sx2.Text = "0.930";
  489. ue.lb_sx3.Text = "-";
  490. ue.zwysm = "铜";
  491. ue.BackColor = TransltionMetalsColor;
  492. ue.pictureBox1.Image = img_cubicfacecentered;
  493. ue.Hide();
  494. p_element29.Controls.Add(ue);
  495. //
  496. ue = new User_Element();
  497. ue.lb_xh.Text = "30";
  498. ue.lb_yzzl.Text = "65.39";
  499. ue.lb_fh.Text = "Zn";
  500. ue.lb_ywm.Text = "Zinc";
  501. ue.lb_sx1.Text = "8.637";
  502. ue.lb_sx2.Text = "1.012";
  503. ue.lb_sx3.Text = "-";
  504. ue.zwysm = "锌";
  505. ue.BackColor = TransltionMetalsColor;
  506. ue.pictureBox1.Image = img_Hexagonal;
  507. ue.Hide();
  508. p_element30.Controls.Add(ue);
  509. //
  510. ue = new User_Element();
  511. ue.lb_xh.Text = "31";
  512. ue.lb_yzzl.Text = "69.72";
  513. ue.lb_fh.Text = "Ga";
  514. ue.lb_ywm.Text = "Gallium";
  515. ue.lb_sx1.Text = "9.250";
  516. ue.lb_sx2.Text = "1.098";
  517. ue.lb_sx3.Text = "-";
  518. ue.zwysm = "镓";
  519. ue.BackColor = OtherMetalsColor;
  520. ue.pictureBox1.Image = img_orthohombic;
  521. ue.Hide();
  522. p_element31.Controls.Add(ue);
  523. //
  524. ue = new User_Element();
  525. ue.lb_xh.Text = "32";
  526. ue.lb_yzzl.Text = "72.61";
  527. ue.lb_fh.Text = "Ge";
  528. ue.lb_ywm.Text = "Germanium";
  529. ue.lb_sx1.Text = "9.885";
  530. ue.lb_sx2.Text = "1.188";
  531. ue.lb_sx3.Text = "-";
  532. ue.zwysm = "锗";
  533. ue.BackColor = MetalloidsColor;
  534. ue.pictureBox1.Image = img_cubicfacecentered;
  535. ue.Hide();
  536. p_element32.Controls.Add(ue);
  537. //
  538. ue = new User_Element();
  539. ue.lb_xh.Text = "33";
  540. ue.lb_yzzl.Text = "74.922";
  541. ue.lb_fh.Text = "As";
  542. ue.lb_ywm.Text = "Arsenic";
  543. ue.lb_sx1.Text = "10.542";
  544. ue.lb_sx2.Text = "1.282";
  545. ue.lb_sx3.Text = "-";
  546. ue.zwysm = "砷";
  547. ue.BackColor = MetalloidsColor;
  548. ue.pictureBox1.Image = img_rhombohedral;
  549. ue.Hide();
  550. p_element33.Controls.Add(ue);
  551. //
  552. ue = new User_Element();
  553. ue.lb_xh.Text = "34";
  554. ue.lb_yzzl.Text = "78.96";
  555. ue.lb_fh.Text = "Se";
  556. ue.lb_ywm.Text = "Selenium";
  557. ue.lb_sx1.Text = "11.220";
  558. ue.lb_sx2.Text = "1.379";
  559. ue.lb_sx3.Text = "-";
  560. ue.zwysm = "硒";
  561. ue.BackColor = NonMetalsColor;
  562. ue.pictureBox1.Image = img_Hexagonal;
  563. ue.Hide();
  564. p_element34.Controls.Add(ue);
  565. //
  566. ue = new User_Element();
  567. ue.lb_xh.Text = "35";
  568. ue.lb_yzzl.Text = "79.904";
  569. ue.lb_fh.Text = "Br";
  570. ue.lb_ywm.Text = "Bromine";
  571. ue.lb_sx1.Text = "11.922";
  572. ue.lb_sx2.Text = "1.480";
  573. ue.lb_sx3.Text = "-";
  574. ue.zwysm = "溴";
  575. ue.BackColor = HalogensColor;
  576. ue.pictureBox1.Image = img_orthohombic;
  577. ue.Hide();
  578. p_element35.Controls.Add(ue);
  579. //
  580. ue = new User_Element();
  581. ue.lb_xh.Text = "36";
  582. ue.lb_yzzl.Text = "83.80";
  583. ue.lb_fh.Text = "Kr";
  584. ue.lb_ywm.Text = "Krypton";
  585. ue.lb_sx1.Text = "12.649";
  586. ue.lb_sx2.Text = "1.586";
  587. ue.lb_sx3.Text = "-";
  588. ue.zwysm = "氪";
  589. ue.BackColor = NobleGasesColor;
  590. ue.pictureBox1.Image = img_cubicfacecentered;
  591. ue.Hide();
  592. p_element36.Controls.Add(ue);
  593. //
  594. ue = new User_Element();
  595. ue.lb_xh.Text = "37";
  596. ue.lb_yzzl.Text = "85.468";
  597. ue.lb_fh.Text = "Rb";
  598. ue.lb_ywm.Text = "Rubidium";
  599. ue.lb_sx1.Text = "13.393";
  600. ue.lb_sx2.Text = "1.694";
  601. ue.lb_sx3.Text = "-";
  602. ue.zwysm = "铷";
  603. ue.BackColor = AlkaliEarthColor;
  604. ue.pictureBox1.Image = img_cubicbodycentered;
  605. ue.Hide();
  606. p_element37.Controls.Add(ue);
  607. //
  608. ue = new User_Element();
  609. ue.lb_xh.Text = "38";
  610. ue.lb_yzzl.Text = "87.62";
  611. ue.lb_fh.Text = "Sr";
  612. ue.lb_ywm.Text = "Strontium";
  613. ue.lb_sx1.Text = "14.163";
  614. ue.lb_sx2.Text = "1.806";
  615. ue.lb_sx3.Text = "-";
  616. ue.zwysm = "锶";
  617. ue.BackColor = AlkalineEarthColor;
  618. ue.pictureBox1.Image = img_cubicfacecentered;
  619. ue.Hide();
  620. p_element38.Controls.Add(ue);
  621. //
  622. ue = new User_Element();
  623. ue.lb_xh.Text = "39";
  624. ue.lb_yzzl.Text = "88.906";
  625. ue.lb_fh.Text = "Y";
  626. ue.lb_ywm.Text = "Yttrium";
  627. ue.lb_sx1.Text = "14.955";
  628. ue.lb_sx2.Text = "1.922";
  629. ue.lb_sx3.Text = "-";
  630. ue.zwysm = "钇";
  631. ue.BackColor = TransltionMetalsColor;
  632. ue.pictureBox1.Image = img_Hexagonal;
  633. ue.Hide();
  634. p_element39.Controls.Add(ue);
  635. //
  636. ue = new User_Element();
  637. ue.lb_xh.Text = "40";
  638. ue.lb_yzzl.Text = "91.22";
  639. ue.lb_fh.Text = "Zr";
  640. ue.lb_ywm.Text = "Zirconium";
  641. ue.lb_sx1.Text = "15.776";
  642. ue.lb_sx2.Text = "2.042";
  643. ue.lb_sx3.Text = "-";
  644. ue.zwysm = "锆";
  645. ue.BackColor = TransltionMetalsColor;
  646. ue.pictureBox1.Image = img_Hexagonal;
  647. ue.Hide();
  648. p_element40.Controls.Add(ue);
  649. //
  650. ue = new User_Element();
  651. ue.lb_xh.Text = "41";
  652. ue.lb_yzzl.Text = "92.906";
  653. ue.lb_fh.Text = "Nb";
  654. ue.lb_ywm.Text = "Niobium";
  655. ue.lb_sx1.Text = "16.617";
  656. ue.lb_sx2.Text = "2.166";
  657. ue.lb_sx3.Text = "-";
  658. ue.zwysm = "铌";
  659. ue.BackColor = TransltionMetalsColor;
  660. ue.pictureBox1.Image = img_cubicbodycentered;
  661. ue.Hide();
  662. p_element41.Controls.Add(ue);
  663. //
  664. ue = new User_Element();
  665. ue.lb_xh.Text = "42";
  666. ue.lb_yzzl.Text = "95.94";
  667. ue.lb_fh.Text = "Mo";
  668. ue.lb_ywm.Text = "Molybdenum";
  669. ue.lb_sx1.Text = "17.481";
  670. ue.lb_sx2.Text = "2.293";
  671. ue.lb_sx3.Text = "-";
  672. ue.zwysm = "钼";
  673. ue.BackColor = TransltionMetalsColor;
  674. ue.pictureBox1.Image = img_cubicbodycentered;
  675. ue.Hide();
  676. p_element42.Controls.Add(ue);
  677. //
  678. ue = new User_Element();
  679. ue.lb_xh.Text = "43";
  680. ue.lb_yzzl.Text = "(98)";
  681. ue.lb_fh.Text = "Tc";
  682. ue.lb_ywm.Text = "Technetium";
  683. ue.lb_sx1.Text = "18.368";
  684. ue.lb_sx2.Text = "2.424";
  685. ue.lb_sx3.Text = "-";
  686. ue.zwysm = "锝";
  687. ue.BackColor = TransltionMetalsColor;
  688. ue.pictureBox1.Image = img_Hexagonal;
  689. ue.Hide();
  690. p_element43.Controls.Add(ue);
  691. //
  692. ue = new User_Element();
  693. ue.lb_xh.Text = "44";
  694. ue.lb_yzzl.Text = "101.07";
  695. ue.lb_fh.Text = "Ru";
  696. ue.lb_ywm.Text = "Ruthenium";
  697. ue.lb_sx1.Text = "19.282";
  698. ue.lb_sx2.Text = "2.558";
  699. ue.lb_sx3.Text = "-";
  700. ue.zwysm = "钌";
  701. ue.BackColor = TransltionMetalsColor;
  702. ue.pictureBox1.Image = img_Hexagonal;
  703. ue.Hide();
  704. p_element44.Controls.Add(ue);
  705. //
  706. ue = new User_Element();
  707. ue.lb_xh.Text = "45";
  708. ue.lb_yzzl.Text = "102.906";
  709. ue.lb_fh.Text = "Rh";
  710. ue.lb_ywm.Text = "Rhodium";
  711. ue.lb_sx1.Text = "20.217";
  712. ue.lb_sx2.Text = "2.696";
  713. ue.lb_sx3.Text = "-";
  714. ue.zwysm = "铑";
  715. ue.BackColor = TransltionMetalsColor;
  716. ue.pictureBox1.Image = img_cubicfacecentered;
  717. ue.Hide();
  718. p_element45.Controls.Add(ue);
  719. //
  720. ue = new User_Element();
  721. ue.lb_xh.Text = "46";
  722. ue.lb_yzzl.Text = "106.42";
  723. ue.lb_fh.Text = "Pd";
  724. ue.lb_ywm.Text = "Palladium";
  725. ue.lb_sx1.Text = "21.180";
  726. ue.lb_sx2.Text = "2.838";
  727. ue.lb_sx3.Text = "-";
  728. ue.zwysm = "钯";
  729. ue.BackColor = TransltionMetalsColor;
  730. ue.pictureBox1.Image = img_cubicfacecentered;
  731. ue.Hide();
  732. p_element46.Controls.Add(ue);
  733. //
  734. ue = new User_Element();
  735. ue.lb_xh.Text = "47";
  736. ue.lb_yzzl.Text = "107.868";
  737. ue.lb_fh.Text = "Ag";
  738. ue.lb_ywm.Text = "Silver";
  739. ue.lb_sx1.Text = "22.166";
  740. ue.lb_sx2.Text = "2.984";
  741. ue.lb_sx3.Text = "-";
  742. ue.zwysm = "银";
  743. ue.BackColor = TransltionMetalsColor;
  744. ue.pictureBox1.Image = img_cubicfacecentered;
  745. ue.Hide();
  746. p_element47.Controls.Add(ue);
  747. //
  748. ue = new User_Element();
  749. ue.lb_xh.Text = "48";
  750. ue.lb_yzzl.Text = "112.41";
  751. ue.lb_fh.Text = "Cd";
  752. ue.lb_ywm.Text = "Cadmium";
  753. ue.lb_sx1.Text = "23.175";
  754. ue.lb_sx2.Text = "3.133";
  755. ue.lb_sx3.Text = "-";
  756. ue.zwysm = "镉";
  757. ue.BackColor = TransltionMetalsColor;
  758. ue.pictureBox1.Image = img_Hexagonal;
  759. ue.Hide();
  760. p_element48.Controls.Add(ue);
  761. //
  762. ue = new User_Element();
  763. ue.lb_xh.Text = "49";
  764. ue.lb_yzzl.Text = "114.82";
  765. ue.lb_fh.Text = "In";
  766. ue.lb_ywm.Text = "Indium";
  767. ue.lb_sx1.Text = "24.209";
  768. ue.lb_sx2.Text = "3.286";
  769. ue.lb_sx3.Text = "-";
  770. ue.zwysm = "铟";
  771. ue.BackColor = OtherMetalsColor;
  772. ue.pictureBox1.Image = img_teragonal;
  773. ue.Hide();
  774. p_element49.Controls.Add(ue);
  775. //
  776. ue = new User_Element();
  777. ue.lb_xh.Text = "50";
  778. ue.lb_yzzl.Text = "118.71";
  779. ue.lb_fh.Text = "Sn";
  780. ue.lb_ywm.Text = "Tin";
  781. ue.lb_sx1.Text = "25.272";
  782. ue.lb_sx2.Text = "3.443";
  783. ue.lb_sx3.Text = "-";
  784. ue.zwysm = "锡";
  785. ue.BackColor = OtherMetalsColor;
  786. ue.pictureBox1.Image = img_teragonal;
  787. ue.Hide();
  788. p_element50.Controls.Add(ue);
  789. //
  790. ue = new User_Element();
  791. ue.lb_xh.Text = "51";
  792. ue.lb_yzzl.Text = "121.76";
  793. ue.lb_fh.Text = "Sb";
  794. ue.lb_ywm.Text = "Antimony";
  795. ue.lb_sx1.Text = "26.359";
  796. ue.lb_sx2.Text = "3.604";
  797. ue.lb_sx3.Text = "-";
  798. ue.zwysm = "锑";
  799. ue.BackColor = MetalloidsColor;
  800. ue.pictureBox1.Image = img_rhombohedral;
  801. ue.Hide();
  802. p_element51.Controls.Add(ue);
  803. //
  804. ue = new User_Element();
  805. ue.lb_xh.Text = "52";
  806. ue.lb_yzzl.Text = "127.60";
  807. ue.lb_fh.Text = "Te";
  808. ue.lb_ywm.Text = "Tellurium";
  809. ue.lb_sx1.Text = "27.471";
  810. ue.lb_sx2.Text = "3.768";
  811. ue.lb_sx3.Text = "-";
  812. ue.zwysm = "碲";
  813. ue.BackColor = MetalloidsColor;
  814. ue.pictureBox1.Image = img_Hexagonal;
  815. ue.Hide();
  816. p_element52.Controls.Add(ue);
  817. //
  818. ue = new User_Element();
  819. ue.lb_xh.Text = "53";
  820. ue.lb_yzzl.Text = "126.905";
  821. ue.lb_fh.Text = "I";
  822. ue.lb_ywm.Text = "Iodine";
  823. ue.lb_sx1.Text = "28.615";
  824. ue.lb_sx2.Text = "3.937";
  825. ue.lb_sx3.Text = "-";
  826. ue.zwysm = "碘";
  827. ue.BackColor = HalogensColor;
  828. ue.pictureBox1.Image = img_orthohombic;
  829. ue.Hide();
  830. p_element53.Controls.Add(ue);
  831. //
  832. ue = new User_Element();
  833. ue.lb_xh.Text = "54";
  834. ue.lb_yzzl.Text = "131.29";
  835. ue.lb_fh.Text = "Xe";
  836. ue.lb_ywm.Text = "Xenon";
  837. ue.lb_sx1.Text = "29.779";
  838. ue.lb_sx2.Text = "4.109";
  839. ue.lb_sx3.Text = "-";
  840. ue.zwysm = "氙";
  841. ue.BackColor = NobleGasesColor;
  842. ue.pictureBox1.Image = img_cubicfacecentered;
  843. ue.Hide();
  844. p_element54.Controls.Add(ue);
  845. //
  846. ue = new User_Element();
  847. ue.lb_xh.Text = "55";
  848. ue.lb_yzzl.Text = "132.905";
  849. ue.lb_fh.Text = "Cs";
  850. ue.lb_ywm.Text = "Cesium";
  851. ue.lb_sx1.Text = "30.971";
  852. ue.lb_sx2.Text = "4.286";
  853. ue.lb_sx3.Text = "-";
  854. ue.zwysm = "铯";
  855. ue.BackColor = AlkaliEarthColor;
  856. ue.pictureBox1.Image = img_cubicbodycentered;
  857. ue.Hide();
  858. p_element55.Controls.Add(ue);
  859. //
  860. ue = new User_Element();
  861. ue.lb_xh.Text = "56";
  862. ue.lb_yzzl.Text = "137.33";
  863. ue.lb_fh.Text = "Ba";
  864. ue.lb_ywm.Text = "Barium";
  865. ue.lb_sx1.Text = "32.196";
  866. ue.lb_sx2.Text = "4.465";
  867. ue.lb_sx3.Text = "0.779";
  868. ue.zwysm = "钡";
  869. ue.BackColor = AlkalineEarthColor;
  870. ue.pictureBox1.Image = img_cubicbodycentered;
  871. ue.Hide();
  872. p_element56.Controls.Add(ue);
  873. //
  874. ue = new User_Element();
  875. ue.lb_xh.Text = "57";
  876. ue.lb_yzzl.Text = "138.906";
  877. ue.lb_fh.Text = "La";
  878. ue.lb_ywm.Text = "Lanthanum";
  879. ue.lb_sx1.Text = "33.441";
  880. ue.lb_sx2.Text = "4.650";
  881. ue.lb_sx3.Text = "0.833";
  882. ue.zwysm = "镧";
  883. ue.BackColor = RareEarthColor;
  884. ue.pictureBox1.Image = img_Hexagonal;
  885. ue.Hide();
  886. p_element57.Controls.Add(ue);
  887. //
  888. ue = new User_Element();
  889. ue.lb_xh.Text = "72";
  890. ue.lb_yzzl.Text = "178.49";
  891. ue.lb_fh.Text = "Hf";
  892. ue.lb_ywm.Text = "Hafnium";
  893. ue.lb_sx1.Text = "55.801";
  894. ue.lb_sx2.Text = "7.898";
  895. ue.lb_sx3.Text = "1.644";
  896. ue.zwysm = "铪";
  897. ue.BackColor = TransltionMetalsColor;
  898. ue.pictureBox1.Image = img_Hexagonal;
  899. ue.Hide();
  900. p_element72.Controls.Add(ue);
  901. //
  902. ue = new User_Element();
  903. ue.lb_xh.Text = "73";
  904. ue.lb_yzzl.Text = "180.948";
  905. ue.lb_fh.Text = "Ta";
  906. ue.lb_ywm.Text = "Tantalum";
  907. ue.lb_sx1.Text = "57.450";
  908. ue.lb_sx2.Text = "8.145";
  909. ue.lb_sx3.Text = "1.709";
  910. ue.zwysm = "钽";
  911. ue.BackColor = TransltionMetalsColor;
  912. ue.pictureBox1.Image = img_cubicbodycentered;
  913. ue.Hide();
  914. p_element73.Controls.Add(ue);
  915. //
  916. ue = new User_Element();
  917. ue.lb_xh.Text = "74";
  918. ue.lb_yzzl.Text = "183.85";
  919. ue.lb_fh.Text = "W";
  920. ue.lb_ywm.Text = "Tungsten";
  921. ue.lb_sx1.Text = "59.305";
  922. ue.lb_sx2.Text = "8.396";
  923. ue.lb_sx3.Text = "1.774";
  924. ue.zwysm = "钨";
  925. ue.BackColor = TransltionMetalsColor;
  926. ue.pictureBox1.Image = img_cubicbodycentered;
  927. ue.Hide();
  928. p_element74.Controls.Add(ue);
  929. //
  930. ue = new User_Element();
  931. ue.lb_xh.Text = "75";
  932. ue.lb_yzzl.Text = "186.207";
  933. ue.lb_fh.Text = "Re";
  934. ue.lb_ywm.Text = "Rhenium";
  935. ue.lb_sx1.Text = "61.122";
  936. ue.lb_sx2.Text = "8.651";
  937. ue.lb_sx3.Text = "1.842";
  938. ue.zwysm = "铼";
  939. ue.BackColor = TransltionMetalsColor;
  940. ue.pictureBox1.Image = img_Hexagonal;
  941. ue.Hide();
  942. p_element75.Controls.Add(ue);
  943. //
  944. ue = new User_Element();
  945. ue.lb_xh.Text = "76";
  946. ue.lb_yzzl.Text = "190.2";
  947. ue.lb_fh.Text = "Os";
  948. ue.lb_ywm.Text = "Osmium";
  949. ue.lb_sx1.Text = "62.989";
  950. ue.lb_sx2.Text = "8.910";
  951. ue.lb_sx3.Text = "1.910";
  952. ue.zwysm = "锇";
  953. ue.BackColor = TransltionMetalsColor;
  954. ue.pictureBox1.Image = img_Hexagonal;
  955. ue.Hide();
  956. p_element76.Controls.Add(ue);
  957. //
  958. ue = new User_Element();
  959. ue.lb_xh.Text = "77";
  960. ue.lb_yzzl.Text = "192.22";
  961. ue.lb_fh.Text = "Ir";
  962. ue.lb_ywm.Text = "Iridium";
  963. ue.lb_sx1.Text = "64.906";
  964. ue.lb_sx2.Text = "9.174";
  965. ue.lb_sx3.Text = "1.978";
  966. ue.zwysm = "铱";
  967. ue.BackColor = TransltionMetalsColor;
  968. ue.pictureBox1.Image = img_cubicfacecentered;
  969. ue.Hide();
  970. p_element77.Controls.Add(ue);
  971. //
  972. ue = new User_Element();
  973. ue.lb_xh.Text = "78";
  974. ue.lb_yzzl.Text = "195.08";
  975. ue.lb_fh.Text = "Pt";
  976. ue.lb_ywm.Text = "Platinium";
  977. ue.lb_sx1.Text = "66.834";
  978. ue.lb_sx2.Text = "9.441";
  979. ue.lb_sx3.Text = "2.048";
  980. ue.zwysm = "铂";
  981. ue.BackColor = TransltionMetalsColor;
  982. ue.pictureBox1.Image = img_cubicfacecentered;
  983. ue.Hide();
  984. p_element78.Controls.Add(ue);
  985. //
  986. ue = new User_Element();
  987. ue.lb_xh.Text = "79";
  988. ue.lb_yzzl.Text = "196.967";
  989. ue.lb_fh.Text = "Au";
  990. ue.lb_ywm.Text = "Gold";
  991. ue.lb_sx1.Text = "68.804";
  992. ue.lb_sx2.Text = "9.712";
  993. ue.lb_sx3.Text = "2.120";
  994. ue.zwysm = "金";
  995. ue.BackColor = TransltionMetalsColor;
  996. ue.pictureBox1.Image = img_cubicfacecentered;
  997. ue.Hide();
  998. p_element79.Controls.Add(ue);
  999. //
  1000. ue = new User_Element();
  1001. ue.lb_xh.Text = "80";
  1002. ue.lb_yzzl.Text = "200.59";
  1003. ue.lb_fh.Text = "Hg";
  1004. ue.lb_ywm.Text = "Mercury";
  1005. ue.lb_sx1.Text = "70.806";
  1006. ue.lb_sx2.Text = "9.987";
  1007. ue.lb_sx3.Text = "2.191";
  1008. ue.zwysm = "汞";
  1009. ue.BackColor = TransltionMetalsColor;
  1010. ue.pictureBox1.Image = img_rhombohedral;
  1011. ue.Hide();
  1012. p_element80.Controls.Add(ue);
  1013. //
  1014. ue = new User_Element();
  1015. ue.lb_xh.Text = "81";
  1016. ue.lb_yzzl.Text = "204.38";
  1017. ue.lb_fh.Text = "Tl";
  1018. ue.lb_ywm.Text = "Thallium";
  1019. ue.lb_sx1.Text = "72.869";
  1020. ue.lb_sx2.Text = "10.256";
  1021. ue.lb_sx3.Text = "2.268";
  1022. ue.zwysm = "铊";
  1023. ue.BackColor = OtherMetalsColor;
  1024. ue.pictureBox1.Image = img_Hexagonal;
  1025. ue.Hide();
  1026. p_element81.Controls.Add(ue);
  1027. //
  1028. ue = new User_Element();
  1029. ue.lb_xh.Text = "82";
  1030. ue.lb_yzzl.Text = "207.2";
  1031. ue.lb_fh.Text = "Pb";
  1032. ue.lb_ywm.Text = "Lead";
  1033. ue.lb_sx1.Text = "74.989";
  1034. ue.lb_sx2.Text = "10.550";
  1035. ue.lb_sx3.Text = "2.342";
  1036. ue.zwysm = "铅";
  1037. ue.BackColor = OtherMetalsColor;
  1038. ue.pictureBox1.Image = img_cubicfacecentered;
  1039. ue.Hide();
  1040. p_element82.Controls.Add(ue);
  1041. //
  1042. ue = new User_Element();
  1043. ue.lb_xh.Text = "83";
  1044. ue.lb_yzzl.Text = "208.980";
  1045. ue.lb_fh.Text = "Bi";
  1046. ue.lb_ywm.Text = "Bismuth";
  1047. ue.lb_sx1.Text = "77.091";
  1048. ue.lb_sx2.Text = "10.837";
  1049. ue.lb_sx3.Text = "2.419";
  1050. ue.zwysm = "铋";
  1051. ue.BackColor = OtherMetalsColor;
  1052. ue.pictureBox1.Image = img_rhombohedral;
  1053. ue.Hide();
  1054. p_element83.Controls.Add(ue);
  1055. //
  1056. ue = new User_Element();
  1057. ue.lb_xh.Text = "84";
  1058. ue.lb_yzzl.Text = "(209)";
  1059. ue.lb_fh.Text = "Po";
  1060. ue.lb_ywm.Text = "Polonium";
  1061. ue.lb_sx1.Text = "79.272";
  1062. ue.lb_sx2.Text = "11.129";
  1063. ue.lb_sx3.Text = "2.505";
  1064. ue.zwysm = "钋";
  1065. ue.BackColor = MetalloidsColor;
  1066. ue.pictureBox1.Image = img_Monoclinic;
  1067. ue.Hide();
  1068. p_element84.Controls.Add(ue);
  1069. //
  1070. ue = new User_Element();
  1071. ue.lb_xh.Text = "85";
  1072. ue.lb_yzzl.Text = "(210)";
  1073. ue.lb_fh.Text = "At";
  1074. ue.lb_ywm.Text = "Astatine";
  1075. ue.lb_sx1.Text = "81.513";
  1076. ue.lb_sx2.Text = "11.425";
  1077. ue.lb_sx3.Text = "2.585";
  1078. ue.zwysm = "砹";
  1079. ue.BackColor = HalogensColor;
  1080. //ue.pictureBox1.Image = img_cubicfacecentered;
  1081. ue.Hide();
  1082. ue.pictureBox1.Hide();
  1083. p_element85.Controls.Add(ue);
  1084. //
  1085. ue = new User_Element();
  1086. ue.lb_xh.Text = "86";
  1087. ue.lb_yzzl.Text = "(222)";
  1088. ue.lb_fh.Text = "Rn";
  1089. ue.lb_ywm.Text = "Radon";
  1090. ue.lb_sx1.Text = "83.771";
  1091. ue.lb_sx2.Text = "11.725";
  1092. ue.lb_sx3.Text = "2.665";
  1093. ue.zwysm = "氡";
  1094. ue.BackColor = NobleGasesColor;
  1095. ue.pictureBox1.Image = img_cubicfacecentered;
  1096. ue.Hide();
  1097. p_element86.Controls.Add(ue);
  1098. //
  1099. ue = new User_Element();
  1100. ue.lb_xh.Text = "87";
  1101. ue.lb_yzzl.Text = "(223)";
  1102. ue.lb_fh.Text = "Fr";
  1103. ue.lb_ywm.Text = "Francium";
  1104. ue.lb_sx1.Text = "86.098";
  1105. ue.lb_sx2.Text = "12.029";
  1106. ue.lb_sx3.Text = "2.747";
  1107. ue.zwysm = "钫";
  1108. ue.BackColor = AlkaliEarthColor;
  1109. ue.pictureBox1.Image = img_cubicbodycentered;
  1110. ue.Hide();
  1111. p_element87.Controls.Add(ue);
  1112. //
  1113. ue = new User_Element();
  1114. ue.lb_xh.Text = "88";
  1115. ue.lb_yzzl.Text = "226.025";
  1116. ue.lb_fh.Text = "Ra";
  1117. ue.lb_ywm.Text = "Radium";
  1118. ue.lb_sx1.Text = "88.480";
  1119. ue.lb_sx2.Text = "12.338";
  1120. ue.lb_sx3.Text = "2.830";
  1121. ue.zwysm = "镭";
  1122. ue.BackColor = AlkalineEarthColor;
  1123. ue.pictureBox1.Image = img_cubicbodycentered;
  1124. ue.Hide();
  1125. p_element88.Controls.Add(ue);
  1126. //
  1127. ue = new User_Element();
  1128. ue.lb_xh.Text = "89";
  1129. ue.lb_yzzl.Text = "227.028";
  1130. ue.lb_fh.Text = "Ac";
  1131. ue.lb_ywm.Text = "Actinium";
  1132. ue.lb_sx1.Text = "90.880";
  1133. ue.lb_sx2.Text = "12.650";
  1134. ue.lb_sx3.Text = "2.915";
  1135. ue.zwysm = "锕";
  1136. ue.BackColor = RareEarthColor;
  1137. ue.pictureBox1.Image = img_cubicfacecentered;
  1138. ue.Hide();
  1139. p_element89.Controls.Add(ue);
  1140. //最下方的28个元素
  1141. //
  1142. ue = new User_Element();
  1143. ue.lb_xh.Text = "58";
  1144. ue.lb_yzzl.Text = "140.12";
  1145. ue.lb_fh.Text = "Ce";
  1146. ue.lb_ywm.Text = "Cerium";
  1147. ue.lb_sx1.Text = "34.717";
  1148. ue.lb_sx2.Text = "4.839";
  1149. ue.lb_sx3.Text = "0.883";
  1150. ue.zwysm = "铈";
  1151. ue.BackColor = RareEarthColor;
  1152. ue.pictureBox1.Image = img_cubicfacecentered;
  1153. ue.Hide();
  1154. p_element58.Controls.Add(ue);
  1155. //
  1156. ue = new User_Element();
  1157. ue.lb_xh.Text = "59";
  1158. ue.lb_yzzl.Text = "140.908";
  1159. ue.lb_fh.Text = "Pr";
  1160. ue.lb_ywm.Text = "Praseodymium";
  1161. ue.lb_sx1.Text = "36.031";
  1162. ue.lb_sx2.Text = "5.033";
  1163. ue.lb_sx3.Text = "0.929";
  1164. ue.zwysm = "镨";
  1165. ue.BackColor = RareEarthColor;
  1166. ue.pictureBox1.Image = img_Hexagonal;
  1167. ue.Hide();
  1168. p_element59.Controls.Add(ue);
  1169. //
  1170. ue = new User_Element();
  1171. ue.lb_xh.Text = "60";
  1172. ue.lb_yzzl.Text = "144.24";
  1173. ue.lb_fh.Text = "Nd";
  1174. ue.lb_ywm.Text = "Neodymium";
  1175. ue.lb_sx1.Text = "37.358";
  1176. ue.lb_sx2.Text = "5.229";
  1177. ue.lb_sx3.Text = "0.978";
  1178. ue.zwysm = "钕";
  1179. ue.BackColor = RareEarthColor;
  1180. ue.pictureBox1.Image = img_Hexagonal;
  1181. ue.Hide();
  1182. p_element60.Controls.Add(ue);
  1183. //
  1184. ue = new User_Element();
  1185. ue.lb_xh.Text = "61";
  1186. ue.lb_yzzl.Text = "(145)";
  1187. ue.lb_fh.Text = "Pm";
  1188. ue.lb_ywm.Text = "Promethium";
  1189. ue.lb_sx1.Text = "38.725";
  1190. ue.lb_sx2.Text = "5.432";
  1191. ue.lb_sx3.Text = "1.032";
  1192. ue.zwysm = "钷";
  1193. ue.BackColor = RareEarthColor;
  1194. ue.pictureBox1.Image = img_Hexagonal;
  1195. ue.Hide();
  1196. p_element61.Controls.Add(ue);
  1197. //
  1198. ue = new User_Element();
  1199. ue.lb_xh.Text = "62";
  1200. ue.lb_yzzl.Text = "150.36";
  1201. ue.lb_fh.Text = "Sm";
  1202. ue.lb_ywm.Text = "Samarium";
  1203. ue.lb_sx1.Text = "40.118";
  1204. ue.lb_sx2.Text = "5.635";
  1205. ue.lb_sx3.Text = "1.081";
  1206. ue.zwysm = "钐";
  1207. ue.BackColor = RareEarthColor;
  1208. ue.pictureBox1.Image = img_rhombohedral;
  1209. ue.Hide();
  1210. p_element62.Controls.Add(ue);
  1211. //
  1212. ue = new User_Element();
  1213. ue.lb_xh.Text = "63";
  1214. ue.lb_yzzl.Text = "151.97";
  1215. ue.lb_fh.Text = "Eu";
  1216. ue.lb_ywm.Text = "Europium";
  1217. ue.lb_sx1.Text = "41.534";
  1218. ue.lb_sx2.Text = "5.845";
  1219. ue.lb_sx3.Text = "1.137";
  1220. ue.zwysm = "铕";
  1221. ue.BackColor = RareEarthColor;
  1222. ue.pictureBox1.Image = img_cubicbodycentered;
  1223. ue.Hide();
  1224. p_element63.Controls.Add(ue);
  1225. //
  1226. ue = new User_Element();
  1227. ue.lb_xh.Text = "64";
  1228. ue.lb_yzzl.Text = "157.25";
  1229. ue.lb_fh.Text = "Gd";
  1230. ue.lb_ywm.Text = "Gadolinium";
  1231. ue.lb_sx1.Text = "42.992";
  1232. ue.lb_sx2.Text = "6.056";
  1233. ue.lb_sx3.Text = "1.185";
  1234. ue.zwysm = "铕";
  1235. ue.BackColor = RareEarthColor;
  1236. ue.pictureBox1.Image = img_Hexagonal;
  1237. ue.Hide();
  1238. p_element64.Controls.Add(ue);
  1239. //
  1240. ue = new User_Element();
  1241. ue.lb_xh.Text = "65";
  1242. ue.lb_yzzl.Text = "158.925";
  1243. ue.lb_fh.Text = "Tb";
  1244. ue.lb_ywm.Text = "Terbium";
  1245. ue.lb_sx1.Text = "44.476";
  1246. ue.lb_sx2.Text = "6.272";
  1247. ue.lb_sx3.Text = "1.240";
  1248. ue.zwysm = "铽";
  1249. ue.BackColor = RareEarthColor;
  1250. ue.pictureBox1.Image = img_Hexagonal;
  1251. ue.Hide();
  1252. p_element65.Controls.Add(ue);
  1253. //
  1254. ue = new User_Element();
  1255. ue.lb_xh.Text = "66";
  1256. ue.lb_yzzl.Text = "162.50";
  1257. ue.lb_fh.Text = "Dy";
  1258. ue.lb_ywm.Text = "Dysprosium";
  1259. ue.lb_sx1.Text = "45.997";
  1260. ue.lb_sx2.Text = "6.494";
  1261. ue.lb_sx3.Text = "1.293";
  1262. ue.zwysm = "镝";
  1263. ue.BackColor = RareEarthColor;
  1264. ue.pictureBox1.Image = img_Hexagonal;
  1265. ue.Hide();
  1266. p_element66.Controls.Add(ue);
  1267. //
  1268. ue = new User_Element();
  1269. ue.lb_xh.Text = "67";
  1270. ue.lb_yzzl.Text = "164.930";
  1271. ue.lb_fh.Text = "Ho";
  1272. ue.lb_ywm.Text = "Holmium";
  1273. ue.lb_sx1.Text = "47.534";
  1274. ue.lb_sx2.Text = "6.719";
  1275. ue.lb_sx3.Text = "1.347";
  1276. ue.zwysm = "钬";
  1277. ue.BackColor = RareEarthColor;
  1278. ue.pictureBox1.Image = img_Hexagonal;
  1279. ue.Hide();
  1280. p_element67.Controls.Add(ue);
  1281. //
  1282. ue = new User_Element();
  1283. ue.lb_xh.Text = "68";
  1284. ue.lb_yzzl.Text = "167.26";
  1285. ue.lb_fh.Text = "Er";
  1286. ue.lb_ywm.Text = "Erbium";
  1287. ue.lb_sx1.Text = "49.100";
  1288. ue.lb_sx2.Text = "6.947";
  1289. ue.lb_sx3.Text = "1.405";
  1290. ue.zwysm = "铒";
  1291. ue.BackColor = RareEarthColor;
  1292. ue.pictureBox1.Image = img_Hexagonal;
  1293. ue.Hide();
  1294. p_element68.Controls.Add(ue);
  1295. //
  1296. ue = new User_Element();
  1297. ue.lb_xh.Text = "69";
  1298. ue.lb_yzzl.Text = "168.934";
  1299. ue.lb_fh.Text = "Tm";
  1300. ue.lb_ywm.Text = "Thulium";
  1301. ue.lb_sx1.Text = "50.730";
  1302. ue.lb_sx2.Text = "7.179";
  1303. ue.lb_sx3.Text = "1.462";
  1304. ue.zwysm = "铥";
  1305. ue.BackColor = RareEarthColor;
  1306. ue.pictureBox1.Image = img_Hexagonal;
  1307. ue.Hide();
  1308. p_element69.Controls.Add(ue);
  1309. //
  1310. ue = new User_Element();
  1311. ue.lb_xh.Text = "70";
  1312. ue.lb_yzzl.Text = "173.04";
  1313. ue.lb_fh.Text = "Yb";
  1314. ue.lb_ywm.Text = "Ytterbium";
  1315. ue.lb_sx1.Text = "52.362";
  1316. ue.lb_sx2.Text = "7.414";
  1317. ue.lb_sx3.Text = "1.521";
  1318. ue.zwysm = "镱";
  1319. ue.BackColor = RareEarthColor;
  1320. ue.pictureBox1.Image = img_cubicfacecentered;
  1321. ue.Hide();
  1322. p_element70.Controls.Add(ue);
  1323. //
  1324. ue = new User_Element();
  1325. ue.lb_xh.Text = "71";
  1326. ue.lb_yzzl.Text = "174.967";
  1327. ue.lb_fh.Text = "Lu";
  1328. ue.lb_ywm.Text = "Lutetium";
  1329. ue.lb_sx1.Text = "54.078";
  1330. ue.lb_sx2.Text = "7.654";
  1331. ue.lb_sx3.Text = "1.581";
  1332. ue.zwysm = "镥";
  1333. ue.BackColor = RareEarthColor;
  1334. ue.pictureBox1.Image = img_Hexagonal;
  1335. ue.Hide();
  1336. p_element71.Controls.Add(ue);
  1337. //
  1338. ue = new User_Element();
  1339. ue.lb_xh.Text = "90";
  1340. ue.lb_yzzl.Text = "232.038";
  1341. ue.lb_fh.Text = "Th";
  1342. ue.lb_ywm.Text = "Thorium";
  1343. ue.lb_sx1.Text = "93.382";
  1344. ue.lb_sx2.Text = "12.967";
  1345. ue.lb_sx3.Text = "2.991";
  1346. ue.zwysm = "钍";
  1347. ue.BackColor = RareEarthColor;
  1348. ue.pictureBox1.Image = img_cubicfacecentered;
  1349. ue.Hide();
  1350. p_element90.Controls.Add(ue);
  1351. //
  1352. ue = new User_Element();
  1353. ue.lb_xh.Text = "91";
  1354. ue.lb_yzzl.Text = "231.036";
  1355. ue.lb_fh.Text = "Pa";
  1356. ue.lb_ywm.Text = "Protoactinium";
  1357. ue.lb_sx1.Text = "95.886";
  1358. ue.lb_sx2.Text = "13.288";
  1359. ue.lb_sx3.Text = "3.077";
  1360. ue.zwysm = "镤";
  1361. ue.BackColor = RareEarthColor;
  1362. ue.pictureBox1.Image = img_orthohombic;
  1363. ue.Hide();
  1364. p_element91.Controls.Add(ue);
  1365. //
  1366. ue = new User_Element();
  1367. ue.lb_xh.Text = "92";
  1368. ue.lb_yzzl.Text = "238.029";
  1369. ue.lb_fh.Text = "U";
  1370. ue.lb_ywm.Text = "Uranium";
  1371. ue.lb_sx1.Text = "98.434";
  1372. ue.lb_sx2.Text = "13.612";
  1373. ue.lb_sx3.Text = "3.165";
  1374. ue.zwysm = "铀";
  1375. ue.BackColor = RareEarthColor;
  1376. ue.pictureBox1.Image = img_orthohombic;
  1377. ue.Hide();
  1378. p_element92.Controls.Add(ue);
  1379. //
  1380. ue = new User_Element();
  1381. ue.lb_xh.Text = "93";
  1382. ue.lb_yzzl.Text = "237.048";
  1383. ue.lb_fh.Text = "Np";
  1384. ue.lb_ywm.Text = "Neptunium";
  1385. ue.lb_sx1.Text = "100.800";
  1386. ue.lb_sx2.Text = "13.941";
  1387. ue.lb_sx3.Text = "3.253";
  1388. ue.zwysm = "镎";
  1389. ue.BackColor = RareEarthColor;
  1390. ue.pictureBox1.Image = img_orthohombic;
  1391. ue.Hide();
  1392. p_element93.Controls.Add(ue);
  1393. //
  1394. ue = new User_Element();
  1395. ue.lb_xh.Text = "94";
  1396. ue.lb_yzzl.Text = "(244)";
  1397. ue.lb_fh.Text = "Pu";
  1398. ue.lb_ywm.Text = "Plutonium";
  1399. ue.lb_sx1.Text = "103.320";
  1400. ue.lb_sx2.Text = "14.275";
  1401. ue.lb_sx3.Text = "3.344";
  1402. ue.zwysm = "钚";
  1403. ue.BackColor = RareEarthColor;
  1404. ue.pictureBox1.Image = img_Monoclinic;
  1405. ue.Hide();
  1406. p_element94.Controls.Add(ue);
  1407. //
  1408. ue = new User_Element();
  1409. ue.lb_xh.Text = "95";
  1410. ue.lb_yzzl.Text = "(243)";
  1411. ue.lb_fh.Text = "Am";
  1412. ue.lb_ywm.Text = "Americium";
  1413. ue.lb_sx1.Text = "105.970";
  1414. ue.lb_sx2.Text = "14.615";
  1415. ue.lb_sx3.Text = "3.435";
  1416. ue.zwysm = "镅";
  1417. ue.BackColor = RareEarthColor;
  1418. ue.pictureBox1.Image = img_Hexagonal;
  1419. ue.Hide();
  1420. p_element95.Controls.Add(ue);
  1421. //
  1422. ue = new User_Element();
  1423. ue.lb_xh.Text = "96";
  1424. ue.lb_yzzl.Text = "(247)";
  1425. ue.lb_fh.Text = "Cm";
  1426. ue.lb_ywm.Text = "Curium";
  1427. ue.lb_sx1.Text = "108.737";
  1428. ue.lb_sx2.Text = "14.961";
  1429. ue.lb_sx3.Text = "3.539";
  1430. ue.zwysm = "锔";
  1431. ue.BackColor = RareEarthColor;
  1432. //ue.pictureBox1.Visible = true;
  1433. ue.pictureBox1.Hide();
  1434. ue.Hide();
  1435. p_element96.Controls.Add(ue);
  1436. //
  1437. ue = new User_Element();
  1438. ue.lb_xh.Text = "97";
  1439. ue.lb_yzzl.Text = "(247)";
  1440. ue.lb_fh.Text = "Bk";
  1441. ue.lb_ywm.Text = "Berkelium";
  1442. ue.lb_sx1.Text = "111.676";
  1443. ue.lb_sx2.Text = "15.309";
  1444. ue.lb_sx3.Text = "3.634";
  1445. ue.zwysm = "锫";
  1446. ue.BackColor = RareEarthColor;
  1447. ue.pictureBox1.Hide();
  1448. ue.Hide();
  1449. p_element97.Controls.Add(ue);
  1450. //
  1451. ue = new User_Element();
  1452. ue.lb_xh.Text = "98";
  1453. ue.lb_yzzl.Text = "(251)";
  1454. ue.lb_fh.Text = "Cf";
  1455. ue.lb_ywm.Text = "Californium";
  1456. ue.lb_sx1.Text = "114.778";
  1457. ue.lb_sx2.Text = "15.661";
  1458. ue.lb_sx3.Text = "3.731";
  1459. ue.zwysm = "锎";
  1460. ue.BackColor = RareEarthColor;
  1461. ue.pictureBox1.Hide();
  1462. ue.Hide();
  1463. p_element98.Controls.Add(ue);
  1464. //
  1465. ue = new User_Element();
  1466. ue.lb_xh.Text = "99";
  1467. ue.lb_yzzl.Text = "(252)";
  1468. ue.lb_fh.Text = "Es";
  1469. ue.lb_ywm.Text = "Einsteinium";
  1470. ue.lb_sx1.Text = "-";
  1471. ue.lb_sx2.Text = "16.018";
  1472. ue.lb_sx3.Text = "3.829";
  1473. ue.zwysm = "锿";
  1474. ue.BackColor = RareEarthColor;
  1475. ue.pictureBox1.Hide();
  1476. ue.Hide();
  1477. p_element99.Controls.Add(ue);
  1478. //
  1479. ue = new User_Element();
  1480. ue.lb_xh.Text = "100";
  1481. ue.lb_yzzl.Text = "(257)";
  1482. ue.lb_fh.Text = "Fm";
  1483. ue.lb_ywm.Text = "Fermium";
  1484. ue.lb_sx1.Text = "";
  1485. ue.lb_sx2.Text = "";
  1486. ue.lb_sx3.Text = "";
  1487. ue.zwysm = "镄";
  1488. ue.BackColor = RareEarthColor;
  1489. ue.pictureBox1.Hide();
  1490. ue.Hide();
  1491. p_element100.Controls.Add(ue);
  1492. //
  1493. ue = new User_Element();
  1494. ue.lb_xh.Text = "101";
  1495. ue.lb_yzzl.Text = "(258)";
  1496. ue.lb_fh.Text = "Md";
  1497. ue.lb_ywm.Text = "Mendelevium";
  1498. ue.lb_sx1.Text = "";
  1499. ue.lb_sx2.Text = "";
  1500. ue.lb_sx3.Text = "";
  1501. ue.zwysm = "钔";
  1502. ue.BackColor = RareEarthColor;
  1503. ue.pictureBox1.Hide();
  1504. ue.Hide();
  1505. p_element101.Controls.Add(ue);
  1506. //
  1507. ue = new User_Element();
  1508. ue.lb_xh.Text = "102";
  1509. ue.lb_yzzl.Text = "(259)";
  1510. ue.lb_fh.Text = "No";
  1511. ue.lb_ywm.Text = "Nobelium";
  1512. ue.lb_sx1.Text = "";
  1513. ue.lb_sx2.Text = "";
  1514. ue.lb_sx3.Text = "";
  1515. ue.zwysm = "锘";
  1516. ue.BackColor = RareEarthColor;
  1517. ue.pictureBox1.Hide();
  1518. ue.Hide();
  1519. p_element102.Controls.Add(ue);
  1520. //
  1521. ue = new User_Element();
  1522. ue.lb_xh.Text = "103";
  1523. ue.lb_yzzl.Text = "(260)";
  1524. ue.lb_fh.Text = "Lr";
  1525. ue.lb_ywm.Text = "Lawrencium";
  1526. ue.lb_sx1.Text = "";
  1527. ue.lb_sx2.Text = "";
  1528. ue.lb_sx3.Text = "";
  1529. ue.zwysm = "铹";
  1530. ue.BackColor = RareEarthColor;
  1531. ue.pictureBox1.Hide();
  1532. ue.Hide();
  1533. p_element103.Controls.Add(ue);
  1534. }
  1535. public void Show_User_element()
  1536. {
  1537. foreach (Control uc in panel1.Controls)
  1538. {
  1539. //第二步,再找到小panel
  1540. if (uc.Name.IndexOf("p_element") > -1)
  1541. {
  1542. //第三步,里面还有一层,这个才是user_element
  1543. foreach (Control uc2 in uc.Controls)
  1544. {
  1545. User_Element ue = (User_Element)uc2;
  1546. ue.Show();
  1547. }
  1548. }
  1549. }
  1550. }
  1551. #endregion
  1552. #region 图像加载
  1553. public void picturebox_fscl()
  1554. {
  1555. Image img = pictureBox1.Image;
  1556. img = RePic((Bitmap)img, 32, 32);
  1557. pictureBox1.Image = img;
  1558. img = pictureBox2.Image;
  1559. img = RePic((Bitmap)img, 32, 32);
  1560. pictureBox2.Image = img;
  1561. img = pictureBox3.Image;
  1562. img = RePic((Bitmap)img, 32, 32);
  1563. pictureBox3.Image = img;
  1564. img = pictureBox4.Image;
  1565. img = RePic((Bitmap)img, 32, 32);
  1566. pictureBox4.Image = img;
  1567. img = pictureBox5.Image;
  1568. img = RePic((Bitmap)img, 32, 32);
  1569. pictureBox5.Image = img;
  1570. img = pictureBox6.Image;
  1571. img = RePic((Bitmap)img, 32, 32);
  1572. pictureBox6.Image = img;
  1573. img = pictureBox7.Image;
  1574. img = RePic((Bitmap)img, 32, 32);
  1575. pictureBox7.Image = img;
  1576. img = pictureBox8.Image;
  1577. img = RePic((Bitmap)img, 32, 32);
  1578. pictureBox8.Image = img;
  1579. }
  1580. public Bitmap RePic(Bitmap mybm, int width, int height)
  1581. {
  1582. Bitmap bm = new Bitmap(width, height);
  1583. int x, y;
  1584. Color pixel;
  1585. for (x = 0; x < width; x++)
  1586. {
  1587. for (y = 0; y < height; y++)
  1588. {
  1589. pixel = mybm.GetPixel(x, y);
  1590. if (pixel.ToArgb() == -16777216)
  1591. {
  1592. bm.SetPixel(x, y, Color.FromArgb(255, 255, 255));
  1593. }
  1594. }
  1595. }
  1596. return bm;
  1597. }
  1598. #endregion
  1599. }
  1600. }