ThePeriodicTable.cs 59 KB

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