1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- using System.Reflection;
- using System.IO;
- namespace OTSPeriodicTable
- {
- public partial class ThePeriodicTable: UserControl
- {
- #region 加载
- public ThePeriodicTable()
- {
- InitializeComponent();
- }
- private void ThePeriodicTable_Load(object sender, EventArgs e)
- {
- this.DoubleBuffered = true;
- // SetStyle(ControlStyles.UserPaint, true);
- //SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
- //SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲
- //为了美观,先隐藏
- panel1.Hide();
- //加载基本元素组
- initelements();
- //BeginInvoke(new MethodInvoker(initelements));
- //然后再显示,小的元素
- Show_User_element();
- //刷新也没有效果
- panel1.Refresh();
- //再显示
- panel1.Show();
- //图片加载
- picturebox_fscl();
- }
- #endregion
- #region 元素周期表,元素群组信息加载
- public void initelements()
- {
- //9种颜色:
- //Non-Metals 颜色 PaleGoldenrod 如元素(1)
- //Alkali Earth 颜色 Yellow 如元素(3)
- //Alkaline Earth 颜色 Orchid 如元素(4)
- //Transltion Metals 颜色 Red 如元素(21)
- //Other Metals 颜色 PaleGreen 如元素(13)
- //Metalloids 颜色 Gold 如元素(5)
- //Halogens 颜色 Lavender 如元素(9)
- //Noble Gases 颜色 CornflowerBlue 如元素(2)
- //
- Color NonMetalsColor = Color.PaleGoldenrod; //非金属 如元素(1)
- Color AlkaliEarthColor = Color.Yellow; //碱土 如元素(3)
- Color AlkalineEarthColor = Color.Orchid; //碱土金属 如元素(4)
- Color TransltionMetalsColor = Color.Red; //过渡金属 如元素(21)
- Color OtherMetalsColor = Color.PaleGreen; //其它金属 如元素(13)
- Color MetalloidsColor = Color.Gold; //非金属 如元素(5)
- Color HalogensColor = Color.LightSteelBlue; //卤素 如元素(9)
- Color NobleGasesColor = Color.CornflowerBlue;//惰性气体 如元素(2)
- Color RareEarthColor = Color.Gainsboro; //罕见 如元素(57)
- //都显示成一个灰色
- //Color NonMetalsColor = Color.Gainsboro; //非金属 如元素(1)
- //Color AlkaliEarthColor = Color.Gainsboro; //碱土 如元素(3)
- //Color AlkalineEarthColor = Color.Gainsboro; //碱土金属 如元素(4)
- //Color TransltionMetalsColor = Color.Gainsboro; //过渡金属 如元素(21)
- //Color OtherMetalsColor = Color.Gainsboro; //其它金属 如元素(13)
- //Color MetalloidsColor = Color.Gainsboro; //非金属 如元素(5)
- //Color HalogensColor = Color.Gainsboro; //卤素 如元素(9)
- //Color NobleGasesColor = Color.Gainsboro;//惰性气体 如元素(2)
- //Color RareEarthColor = Color.Gainsboro; //罕见 如元素(57)
- Assembly a = Assembly.GetExecutingAssembly();
- string[] resNames = a.GetManifestResourceNames();
- Stream imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubic.gif");
- Image img_cubic = Bitmap.FromStream(imgStream2) as Bitmap;
- img_cubic.Tag = "cubic";
-
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubicbodycentered.gif");
- Image img_cubicbodycentered = Bitmap.FromStream(imgStream2) as Bitmap;
- img_cubicbodycentered.Tag = "img_cubicbodycentered";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.cubicfacecentered.gif");
- Image img_cubicfacecentered = Bitmap.FromStream(imgStream2) as Bitmap;
- img_cubicfacecentered.Tag = "img_cubicfacecentered";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.Hexagonal.gif");
- Image img_Hexagonal = Bitmap.FromStream(imgStream2) as Bitmap;
- img_Hexagonal.Tag = "img_Hexagonal";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.Monoclinic.gif");
- Image img_Monoclinic = Bitmap.FromStream(imgStream2) as Bitmap;
- img_Monoclinic.Tag = "img_Monoclinic";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.orthohombic.gif");
- Image img_orthohombic = Bitmap.FromStream(imgStream2) as Bitmap;
- img_orthohombic.Tag = "img_orthohombic";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.rhombohedral.gif");
- Image img_rhombohedral = Bitmap.FromStream(imgStream2) as Bitmap;
- img_rhombohedral.Tag = "img_rhombohedral";
- imgStream2 = a.GetManifestResourceStream("OTSIncAReportApp.Resources.teragonal.gif");
- Image img_teragonal = Bitmap.FromStream(imgStream2) as Bitmap;
- img_teragonal.Tag = "img_teragonal";
- User_Element ue = new User_Element();
- ue.lb_xh.Text = "1";
- ue.lb_yzzl.Text = "1.008";
- ue.lb_fh.Text = "H";
- ue.lb_ywm.Text = "Hydrogen";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "氢";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element1.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "2";
- ue.lb_yzzl.Text = "4.003";
- ue.lb_fh.Text = "He";
- ue.lb_ywm.Text = "Helium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "氦";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element2.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "3";
- ue.lb_yzzl.Text = "6.941";
- ue.lb_fh.Text = "Li";
- ue.lb_ywm.Text = "Lithium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "锂";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element3.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "4";
- ue.lb_yzzl.Text = "9.012";
- ue.lb_fh.Text = "Be";
- ue.lb_ywm.Text = "Beryllium";
- ue.lb_sx1.Text = "0.108";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铍";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element4.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "5";
- ue.lb_yzzl.Text = "10.811";
- ue.lb_fh.Text = "B";
- ue.lb_ywm.Text = "Boron";
- ue.lb_sx1.Text = "0.185";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "硼";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element5.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "6";
- ue.lb_yzzl.Text = "12.011";
- ue.lb_fh.Text = "C";
- ue.lb_ywm.Text = "Carbon";
- ue.lb_sx1.Text = "0.277";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "碳";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element6.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "7";
- ue.lb_yzzl.Text = "14.007";
- ue.lb_fh.Text = "N";
- ue.lb_ywm.Text = "Nitrogen";
- ue.lb_sx1.Text = "0.392";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氮";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element7.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "8";
- ue.lb_yzzl.Text = "15.999";
- ue.lb_fh.Text = "O";
- ue.lb_ywm.Text = "Oxygen";
- ue.lb_sx1.Text = "0.523";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氧";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_cubic;
- ue.Hide();
- p_element8.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "9";
- ue.lb_yzzl.Text = "18.998";
- ue.lb_fh.Text = "F";
- ue.lb_ywm.Text = "Fluorine";
- ue.lb_sx1.Text = "0.677";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氟";
- ue.BackColor = HalogensColor;
- ue.pictureBox1.Image = img_cubic;
- ue.Hide();
- p_element9.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "10";
- ue.lb_yzzl.Text = "20.180";
- ue.lb_fh.Text = "Ne";
- ue.lb_ywm.Text = "Neon";
- ue.lb_sx1.Text = "0.848";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氖";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element10.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "11";
- ue.lb_yzzl.Text = "22.990";
- ue.lb_fh.Text = "Na";
- ue.lb_ywm.Text = "Sodium";
- ue.lb_sx1.Text = "1.040";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钠";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element11.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "12";
- ue.lb_yzzl.Text = "24.305";
- ue.lb_fh.Text = "Mg";
- ue.lb_ywm.Text = "Magnesium";
- ue.lb_sx1.Text = "1.254";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "镁";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element12.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "13";
- ue.lb_yzzl.Text = "26.982";
- ue.lb_fh.Text = "Al";
- ue.lb_ywm.Text = "Aluminum";
- ue.lb_sx1.Text = "1.486";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铝";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element13.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "14";
- ue.lb_yzzl.Text = "28.086";
- ue.lb_fh.Text = "Si";
- ue.lb_ywm.Text = "Silicon";
- ue.lb_sx1.Text = "1.740";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "硅";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element14.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "15";
- ue.lb_yzzl.Text = "30.974";
- ue.lb_fh.Text = "P";
- ue.lb_ywm.Text = "Phosphorus";
- ue.lb_sx1.Text = "2.013";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "磷";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_Monoclinic;
- ue.Hide();
- p_element15.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "16";
- ue.lb_yzzl.Text = "32.066";
- ue.lb_fh.Text = "S";
- ue.lb_ywm.Text = "Sulfur";
- ue.lb_sx1.Text = "2.307";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "硫";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element16.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "17";
- ue.lb_yzzl.Text = "35.453";
- ue.lb_fh.Text = "Cl";
- ue.lb_ywm.Text = "Chlorine";
- ue.lb_sx1.Text = "2.622";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氯";
- ue.BackColor = HalogensColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element17.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "18";
- ue.lb_yzzl.Text = "39.948";
- ue.lb_fh.Text = "Ar";
- ue.lb_ywm.Text = "Argon";
- ue.lb_sx1.Text = "2.957";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氩";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element18.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "19";
- ue.lb_yzzl.Text = "39.098";
- ue.lb_fh.Text = "K";
- ue.lb_ywm.Text = "Potassium";
- ue.lb_sx1.Text = "3.313";
- ue.lb_sx2.Text = "-";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钾";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element19.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "20";
- ue.lb_yzzl.Text = "40.08";
- ue.lb_fh.Text = "Ca";
- ue.lb_ywm.Text = "Calcium";
- ue.lb_sx1.Text = "3.691";
- ue.lb_sx2.Text = "0.341";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钙";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element20.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "21";
- ue.lb_yzzl.Text = "44.956";
- ue.lb_fh.Text = "Sc";
- ue.lb_ywm.Text = "Scandium";
- ue.lb_sx1.Text = "4.090";
- ue.lb_sx2.Text = "0.395";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钪";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element21.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "22";
- ue.lb_yzzl.Text = "47.88";
- ue.lb_fh.Text = "Ti";
- ue.lb_ywm.Text = "Titanium";
- ue.lb_sx1.Text = "4.510";
- ue.lb_sx2.Text = "0.452";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钛";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element22.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "23";
- ue.lb_yzzl.Text = "50.942";
- ue.lb_fh.Text = "V";
- ue.lb_ywm.Text = "Vanadium";
- ue.lb_sx1.Text = "4.952";
- ue.lb_sx2.Text = "0.511";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钒";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element23.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "24";
- ue.lb_yzzl.Text = "51.996";
- ue.lb_fh.Text = "Cr";
- ue.lb_ywm.Text = "Chromium";
- ue.lb_sx1.Text = "5.414";
- ue.lb_sx2.Text = "0.573";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铬";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element24.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "25";
- ue.lb_yzzl.Text = "54.938";
- ue.lb_fh.Text = "Mn";
- ue.lb_ywm.Text = "Manganese";
- ue.lb_sx1.Text = "5.898";
- ue.lb_sx2.Text = "0.637";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锰";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element25.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "26";
- ue.lb_yzzl.Text = "55.847";
- ue.lb_fh.Text = "Fe";
- ue.lb_ywm.Text = "Iron";
- ue.lb_sx1.Text = "6.403";
- ue.lb_sx2.Text = "0.705";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铁";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element26.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "27";
- ue.lb_yzzl.Text = "58.933";
- ue.lb_fh.Text = "Co";
- ue.lb_ywm.Text = "Cobalt";
- ue.lb_sx1.Text = "6.929";
- ue.lb_sx2.Text = "0.776";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钴";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element27.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "28";
- ue.lb_yzzl.Text = "58.70";
- ue.lb_fh.Text = "Ni";
- ue.lb_ywm.Text = "Nickel";
- ue.lb_sx1.Text = "7.477";
- ue.lb_sx2.Text = "0.851";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "镍";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element28.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "29";
- ue.lb_yzzl.Text = "63.546";
- ue.lb_fh.Text = "Cu";
- ue.lb_ywm.Text = "Copper";
- ue.lb_sx1.Text = "8.040";
- ue.lb_sx2.Text = "0.930";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铜";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element29.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "30";
- ue.lb_yzzl.Text = "65.39";
- ue.lb_fh.Text = "Zn";
- ue.lb_ywm.Text = "Zinc";
- ue.lb_sx1.Text = "8.637";
- ue.lb_sx2.Text = "1.012";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锌";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element30.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "31";
- ue.lb_yzzl.Text = "69.72";
- ue.lb_fh.Text = "Ga";
- ue.lb_ywm.Text = "Gallium";
- ue.lb_sx1.Text = "9.250";
- ue.lb_sx2.Text = "1.098";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "镓";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element31.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "32";
- ue.lb_yzzl.Text = "72.61";
- ue.lb_fh.Text = "Ge";
- ue.lb_ywm.Text = "Germanium";
- ue.lb_sx1.Text = "9.885";
- ue.lb_sx2.Text = "1.188";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锗";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element32.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "33";
- ue.lb_yzzl.Text = "74.922";
- ue.lb_fh.Text = "As";
- ue.lb_ywm.Text = "Arsenic";
- ue.lb_sx1.Text = "10.542";
- ue.lb_sx2.Text = "1.282";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "砷";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element33.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "34";
- ue.lb_yzzl.Text = "78.96";
- ue.lb_fh.Text = "Se";
- ue.lb_ywm.Text = "Selenium";
- ue.lb_sx1.Text = "11.220";
- ue.lb_sx2.Text = "1.379";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "硒";
- ue.BackColor = NonMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element34.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "35";
- ue.lb_yzzl.Text = "79.904";
- ue.lb_fh.Text = "Br";
- ue.lb_ywm.Text = "Bromine";
- ue.lb_sx1.Text = "11.922";
- ue.lb_sx2.Text = "1.480";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "溴";
- ue.BackColor = HalogensColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element35.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "36";
- ue.lb_yzzl.Text = "83.80";
- ue.lb_fh.Text = "Kr";
- ue.lb_ywm.Text = "Krypton";
- ue.lb_sx1.Text = "12.649";
- ue.lb_sx2.Text = "1.586";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氪";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element36.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "37";
- ue.lb_yzzl.Text = "85.468";
- ue.lb_fh.Text = "Rb";
- ue.lb_ywm.Text = "Rubidium";
- ue.lb_sx1.Text = "13.393";
- ue.lb_sx2.Text = "1.694";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铷";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element37.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "38";
- ue.lb_yzzl.Text = "87.62";
- ue.lb_fh.Text = "Sr";
- ue.lb_ywm.Text = "Strontium";
- ue.lb_sx1.Text = "14.163";
- ue.lb_sx2.Text = "1.806";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锶";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element38.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "39";
- ue.lb_yzzl.Text = "88.906";
- ue.lb_fh.Text = "Y";
- ue.lb_ywm.Text = "Yttrium";
- ue.lb_sx1.Text = "14.955";
- ue.lb_sx2.Text = "1.922";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钇";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element39.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "40";
- ue.lb_yzzl.Text = "91.22";
- ue.lb_fh.Text = "Zr";
- ue.lb_ywm.Text = "Zirconium";
- ue.lb_sx1.Text = "15.776";
- ue.lb_sx2.Text = "2.042";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锆";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element40.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "41";
- ue.lb_yzzl.Text = "92.906";
- ue.lb_fh.Text = "Nb";
- ue.lb_ywm.Text = "Niobium";
- ue.lb_sx1.Text = "16.617";
- ue.lb_sx2.Text = "2.166";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铌";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element41.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "42";
- ue.lb_yzzl.Text = "95.94";
- ue.lb_fh.Text = "Mo";
- ue.lb_ywm.Text = "Molybdenum";
- ue.lb_sx1.Text = "17.481";
- ue.lb_sx2.Text = "2.293";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钼";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element42.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "43";
- ue.lb_yzzl.Text = "(98)";
- ue.lb_fh.Text = "Tc";
- ue.lb_ywm.Text = "Technetium";
- ue.lb_sx1.Text = "18.368";
- ue.lb_sx2.Text = "2.424";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锝";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element43.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "44";
- ue.lb_yzzl.Text = "101.07";
- ue.lb_fh.Text = "Ru";
- ue.lb_ywm.Text = "Ruthenium";
- ue.lb_sx1.Text = "19.282";
- ue.lb_sx2.Text = "2.558";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钌";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element44.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "45";
- ue.lb_yzzl.Text = "102.906";
- ue.lb_fh.Text = "Rh";
- ue.lb_ywm.Text = "Rhodium";
- ue.lb_sx1.Text = "20.217";
- ue.lb_sx2.Text = "2.696";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铑";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element45.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "46";
- ue.lb_yzzl.Text = "106.42";
- ue.lb_fh.Text = "Pd";
- ue.lb_ywm.Text = "Palladium";
- ue.lb_sx1.Text = "21.180";
- ue.lb_sx2.Text = "2.838";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "钯";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element46.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "47";
- ue.lb_yzzl.Text = "107.868";
- ue.lb_fh.Text = "Ag";
- ue.lb_ywm.Text = "Silver";
- ue.lb_sx1.Text = "22.166";
- ue.lb_sx2.Text = "2.984";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "银";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element47.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "48";
- ue.lb_yzzl.Text = "112.41";
- ue.lb_fh.Text = "Cd";
- ue.lb_ywm.Text = "Cadmium";
- ue.lb_sx1.Text = "23.175";
- ue.lb_sx2.Text = "3.133";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "镉";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element48.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "49";
- ue.lb_yzzl.Text = "114.82";
- ue.lb_fh.Text = "In";
- ue.lb_ywm.Text = "Indium";
- ue.lb_sx1.Text = "24.209";
- ue.lb_sx2.Text = "3.286";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铟";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_teragonal;
- ue.Hide();
- p_element49.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "50";
- ue.lb_yzzl.Text = "118.71";
- ue.lb_fh.Text = "Sn";
- ue.lb_ywm.Text = "Tin";
- ue.lb_sx1.Text = "25.272";
- ue.lb_sx2.Text = "3.443";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锡";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_teragonal;
- ue.Hide();
- p_element50.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "51";
- ue.lb_yzzl.Text = "121.76";
- ue.lb_fh.Text = "Sb";
- ue.lb_ywm.Text = "Antimony";
- ue.lb_sx1.Text = "26.359";
- ue.lb_sx2.Text = "3.604";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "锑";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element51.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "52";
- ue.lb_yzzl.Text = "127.60";
- ue.lb_fh.Text = "Te";
- ue.lb_ywm.Text = "Tellurium";
- ue.lb_sx1.Text = "27.471";
- ue.lb_sx2.Text = "3.768";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "碲";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element52.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "53";
- ue.lb_yzzl.Text = "126.905";
- ue.lb_fh.Text = "I";
- ue.lb_ywm.Text = "Iodine";
- ue.lb_sx1.Text = "28.615";
- ue.lb_sx2.Text = "3.937";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "碘";
- ue.BackColor = HalogensColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element53.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "54";
- ue.lb_yzzl.Text = "131.29";
- ue.lb_fh.Text = "Xe";
- ue.lb_ywm.Text = "Xenon";
- ue.lb_sx1.Text = "29.779";
- ue.lb_sx2.Text = "4.109";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "氙";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element54.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "55";
- ue.lb_yzzl.Text = "132.905";
- ue.lb_fh.Text = "Cs";
- ue.lb_ywm.Text = "Cesium";
- ue.lb_sx1.Text = "30.971";
- ue.lb_sx2.Text = "4.286";
- ue.lb_sx3.Text = "-";
- ue.zwysm = "铯";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element55.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "56";
- ue.lb_yzzl.Text = "137.33";
- ue.lb_fh.Text = "Ba";
- ue.lb_ywm.Text = "Barium";
- ue.lb_sx1.Text = "32.196";
- ue.lb_sx2.Text = "4.465";
- ue.lb_sx3.Text = "0.779";
- ue.zwysm = "钡";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element56.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "57";
- ue.lb_yzzl.Text = "138.906";
- ue.lb_fh.Text = "La";
- ue.lb_ywm.Text = "Lanthanum";
- ue.lb_sx1.Text = "33.441";
- ue.lb_sx2.Text = "4.650";
- ue.lb_sx3.Text = "0.833";
- ue.zwysm = "镧";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element57.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "72";
- ue.lb_yzzl.Text = "178.49";
- ue.lb_fh.Text = "Hf";
- ue.lb_ywm.Text = "Hafnium";
- ue.lb_sx1.Text = "55.801";
- ue.lb_sx2.Text = "7.898";
- ue.lb_sx3.Text = "1.644";
- ue.zwysm = "铪";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element72.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "73";
- ue.lb_yzzl.Text = "180.948";
- ue.lb_fh.Text = "Ta";
- ue.lb_ywm.Text = "Tantalum";
- ue.lb_sx1.Text = "57.450";
- ue.lb_sx2.Text = "8.145";
- ue.lb_sx3.Text = "1.709";
- ue.zwysm = "钽";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element73.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "74";
- ue.lb_yzzl.Text = "183.85";
- ue.lb_fh.Text = "W";
- ue.lb_ywm.Text = "Tungsten";
- ue.lb_sx1.Text = "59.305";
- ue.lb_sx2.Text = "8.396";
- ue.lb_sx3.Text = "1.774";
- ue.zwysm = "钨";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element74.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "75";
- ue.lb_yzzl.Text = "186.207";
- ue.lb_fh.Text = "Re";
- ue.lb_ywm.Text = "Rhenium";
- ue.lb_sx1.Text = "61.122";
- ue.lb_sx2.Text = "8.651";
- ue.lb_sx3.Text = "1.842";
- ue.zwysm = "铼";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element75.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "76";
- ue.lb_yzzl.Text = "190.2";
- ue.lb_fh.Text = "Os";
- ue.lb_ywm.Text = "Osmium";
- ue.lb_sx1.Text = "62.989";
- ue.lb_sx2.Text = "8.910";
- ue.lb_sx3.Text = "1.910";
- ue.zwysm = "锇";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element76.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "77";
- ue.lb_yzzl.Text = "192.22";
- ue.lb_fh.Text = "Ir";
- ue.lb_ywm.Text = "Iridium";
- ue.lb_sx1.Text = "64.906";
- ue.lb_sx2.Text = "9.174";
- ue.lb_sx3.Text = "1.978";
- ue.zwysm = "铱";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element77.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "78";
- ue.lb_yzzl.Text = "195.08";
- ue.lb_fh.Text = "Pt";
- ue.lb_ywm.Text = "Platinium";
- ue.lb_sx1.Text = "66.834";
- ue.lb_sx2.Text = "9.441";
- ue.lb_sx3.Text = "2.048";
- ue.zwysm = "铂";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element78.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "79";
- ue.lb_yzzl.Text = "196.967";
- ue.lb_fh.Text = "Au";
- ue.lb_ywm.Text = "Gold";
- ue.lb_sx1.Text = "68.804";
- ue.lb_sx2.Text = "9.712";
- ue.lb_sx3.Text = "2.120";
- ue.zwysm = "金";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element79.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "80";
- ue.lb_yzzl.Text = "200.59";
- ue.lb_fh.Text = "Hg";
- ue.lb_ywm.Text = "Mercury";
- ue.lb_sx1.Text = "70.806";
- ue.lb_sx2.Text = "9.987";
- ue.lb_sx3.Text = "2.191";
- ue.zwysm = "汞";
- ue.BackColor = TransltionMetalsColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element80.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "81";
- ue.lb_yzzl.Text = "204.38";
- ue.lb_fh.Text = "Tl";
- ue.lb_ywm.Text = "Thallium";
- ue.lb_sx1.Text = "72.869";
- ue.lb_sx2.Text = "10.256";
- ue.lb_sx3.Text = "2.268";
- ue.zwysm = "铊";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element81.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "82";
- ue.lb_yzzl.Text = "207.2";
- ue.lb_fh.Text = "Pb";
- ue.lb_ywm.Text = "Lead";
- ue.lb_sx1.Text = "74.989";
- ue.lb_sx2.Text = "10.550";
- ue.lb_sx3.Text = "2.342";
- ue.zwysm = "铅";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element82.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "83";
- ue.lb_yzzl.Text = "208.980";
- ue.lb_fh.Text = "Bi";
- ue.lb_ywm.Text = "Bismuth";
- ue.lb_sx1.Text = "77.091";
- ue.lb_sx2.Text = "10.837";
- ue.lb_sx3.Text = "2.419";
- ue.zwysm = "铋";
- ue.BackColor = OtherMetalsColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element83.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "84";
- ue.lb_yzzl.Text = "(209)";
- ue.lb_fh.Text = "Po";
- ue.lb_ywm.Text = "Polonium";
- ue.lb_sx1.Text = "79.272";
- ue.lb_sx2.Text = "11.129";
- ue.lb_sx3.Text = "2.505";
- ue.zwysm = "钋";
- ue.BackColor = MetalloidsColor;
- ue.pictureBox1.Image = img_Monoclinic;
- ue.Hide();
- p_element84.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "85";
- ue.lb_yzzl.Text = "(210)";
- ue.lb_fh.Text = "At";
- ue.lb_ywm.Text = "Astatine";
- ue.lb_sx1.Text = "81.513";
- ue.lb_sx2.Text = "11.425";
- ue.lb_sx3.Text = "2.585";
- ue.zwysm = "砹";
- ue.BackColor = HalogensColor;
- //ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- ue.pictureBox1.Hide();
- p_element85.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "86";
- ue.lb_yzzl.Text = "(222)";
- ue.lb_fh.Text = "Rn";
- ue.lb_ywm.Text = "Radon";
- ue.lb_sx1.Text = "83.771";
- ue.lb_sx2.Text = "11.725";
- ue.lb_sx3.Text = "2.665";
- ue.zwysm = "氡";
- ue.BackColor = NobleGasesColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element86.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "87";
- ue.lb_yzzl.Text = "(223)";
- ue.lb_fh.Text = "Fr";
- ue.lb_ywm.Text = "Francium";
- ue.lb_sx1.Text = "86.098";
- ue.lb_sx2.Text = "12.029";
- ue.lb_sx3.Text = "2.747";
- ue.zwysm = "钫";
- ue.BackColor = AlkaliEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element87.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "88";
- ue.lb_yzzl.Text = "226.025";
- ue.lb_fh.Text = "Ra";
- ue.lb_ywm.Text = "Radium";
- ue.lb_sx1.Text = "88.480";
- ue.lb_sx2.Text = "12.338";
- ue.lb_sx3.Text = "2.830";
- ue.zwysm = "镭";
- ue.BackColor = AlkalineEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element88.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "89";
- ue.lb_yzzl.Text = "227.028";
- ue.lb_fh.Text = "Ac";
- ue.lb_ywm.Text = "Actinium";
- ue.lb_sx1.Text = "90.880";
- ue.lb_sx2.Text = "12.650";
- ue.lb_sx3.Text = "2.915";
- ue.zwysm = "锕";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element89.Controls.Add(ue);
- //最下方的28个元素
- //
- ue = new User_Element();
- ue.lb_xh.Text = "58";
- ue.lb_yzzl.Text = "140.12";
- ue.lb_fh.Text = "Ce";
- ue.lb_ywm.Text = "Cerium";
- ue.lb_sx1.Text = "34.717";
- ue.lb_sx2.Text = "4.839";
- ue.lb_sx3.Text = "0.883";
- ue.zwysm = "铈";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element58.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "59";
- ue.lb_yzzl.Text = "140.908";
- ue.lb_fh.Text = "Pr";
- ue.lb_ywm.Text = "Praseodymium";
- ue.lb_sx1.Text = "36.031";
- ue.lb_sx2.Text = "5.033";
- ue.lb_sx3.Text = "0.929";
- ue.zwysm = "镨";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element59.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "60";
- ue.lb_yzzl.Text = "144.24";
- ue.lb_fh.Text = "Nd";
- ue.lb_ywm.Text = "Neodymium";
- ue.lb_sx1.Text = "37.358";
- ue.lb_sx2.Text = "5.229";
- ue.lb_sx3.Text = "0.978";
- ue.zwysm = "钕";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element60.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "61";
- ue.lb_yzzl.Text = "(145)";
- ue.lb_fh.Text = "Pm";
- ue.lb_ywm.Text = "Promethium";
- ue.lb_sx1.Text = "38.725";
- ue.lb_sx2.Text = "5.432";
- ue.lb_sx3.Text = "1.032";
- ue.zwysm = "钷";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element61.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "62";
- ue.lb_yzzl.Text = "150.36";
- ue.lb_fh.Text = "Sm";
- ue.lb_ywm.Text = "Samarium";
- ue.lb_sx1.Text = "40.118";
- ue.lb_sx2.Text = "5.635";
- ue.lb_sx3.Text = "1.081";
- ue.zwysm = "钐";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_rhombohedral;
- ue.Hide();
- p_element62.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "63";
- ue.lb_yzzl.Text = "151.97";
- ue.lb_fh.Text = "Eu";
- ue.lb_ywm.Text = "Europium";
- ue.lb_sx1.Text = "41.534";
- ue.lb_sx2.Text = "5.845";
- ue.lb_sx3.Text = "1.137";
- ue.zwysm = "铕";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_cubicbodycentered;
- ue.Hide();
- p_element63.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "64";
- ue.lb_yzzl.Text = "157.25";
- ue.lb_fh.Text = "Gd";
- ue.lb_ywm.Text = "Gadolinium";
- ue.lb_sx1.Text = "42.992";
- ue.lb_sx2.Text = "6.056";
- ue.lb_sx3.Text = "1.185";
- ue.zwysm = "铕";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element64.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "65";
- ue.lb_yzzl.Text = "158.925";
- ue.lb_fh.Text = "Tb";
- ue.lb_ywm.Text = "Terbium";
- ue.lb_sx1.Text = "44.476";
- ue.lb_sx2.Text = "6.272";
- ue.lb_sx3.Text = "1.240";
- ue.zwysm = "铽";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element65.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "66";
- ue.lb_yzzl.Text = "162.50";
- ue.lb_fh.Text = "Dy";
- ue.lb_ywm.Text = "Dysprosium";
- ue.lb_sx1.Text = "45.997";
- ue.lb_sx2.Text = "6.494";
- ue.lb_sx3.Text = "1.293";
- ue.zwysm = "镝";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element66.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "67";
- ue.lb_yzzl.Text = "164.930";
- ue.lb_fh.Text = "Ho";
- ue.lb_ywm.Text = "Holmium";
- ue.lb_sx1.Text = "47.534";
- ue.lb_sx2.Text = "6.719";
- ue.lb_sx3.Text = "1.347";
- ue.zwysm = "钬";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element67.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "68";
- ue.lb_yzzl.Text = "167.26";
- ue.lb_fh.Text = "Er";
- ue.lb_ywm.Text = "Erbium";
- ue.lb_sx1.Text = "49.100";
- ue.lb_sx2.Text = "6.947";
- ue.lb_sx3.Text = "1.405";
- ue.zwysm = "铒";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element68.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "69";
- ue.lb_yzzl.Text = "168.934";
- ue.lb_fh.Text = "Tm";
- ue.lb_ywm.Text = "Thulium";
- ue.lb_sx1.Text = "50.730";
- ue.lb_sx2.Text = "7.179";
- ue.lb_sx3.Text = "1.462";
- ue.zwysm = "铥";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element69.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "70";
- ue.lb_yzzl.Text = "173.04";
- ue.lb_fh.Text = "Yb";
- ue.lb_ywm.Text = "Ytterbium";
- ue.lb_sx1.Text = "52.362";
- ue.lb_sx2.Text = "7.414";
- ue.lb_sx3.Text = "1.521";
- ue.zwysm = "镱";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element70.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "71";
- ue.lb_yzzl.Text = "174.967";
- ue.lb_fh.Text = "Lu";
- ue.lb_ywm.Text = "Lutetium";
- ue.lb_sx1.Text = "54.078";
- ue.lb_sx2.Text = "7.654";
- ue.lb_sx3.Text = "1.581";
- ue.zwysm = "镥";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element71.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "90";
- ue.lb_yzzl.Text = "232.038";
- ue.lb_fh.Text = "Th";
- ue.lb_ywm.Text = "Thorium";
- ue.lb_sx1.Text = "93.382";
- ue.lb_sx2.Text = "12.967";
- ue.lb_sx3.Text = "2.991";
- ue.zwysm = "钍";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_cubicfacecentered;
- ue.Hide();
- p_element90.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "91";
- ue.lb_yzzl.Text = "231.036";
- ue.lb_fh.Text = "Pa";
- ue.lb_ywm.Text = "Protoactinium";
- ue.lb_sx1.Text = "95.886";
- ue.lb_sx2.Text = "13.288";
- ue.lb_sx3.Text = "3.077";
- ue.zwysm = "镤";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element91.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "92";
- ue.lb_yzzl.Text = "238.029";
- ue.lb_fh.Text = "U";
- ue.lb_ywm.Text = "Uranium";
- ue.lb_sx1.Text = "98.434";
- ue.lb_sx2.Text = "13.612";
- ue.lb_sx3.Text = "3.165";
- ue.zwysm = "铀";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element92.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "93";
- ue.lb_yzzl.Text = "237.048";
- ue.lb_fh.Text = "Np";
- ue.lb_ywm.Text = "Neptunium";
- ue.lb_sx1.Text = "100.800";
- ue.lb_sx2.Text = "13.941";
- ue.lb_sx3.Text = "3.253";
- ue.zwysm = "镎";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_orthohombic;
- ue.Hide();
- p_element93.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "94";
- ue.lb_yzzl.Text = "(244)";
- ue.lb_fh.Text = "Pu";
- ue.lb_ywm.Text = "Plutonium";
- ue.lb_sx1.Text = "103.320";
- ue.lb_sx2.Text = "14.275";
- ue.lb_sx3.Text = "3.344";
- ue.zwysm = "钚";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Monoclinic;
- ue.Hide();
- p_element94.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "95";
- ue.lb_yzzl.Text = "(243)";
- ue.lb_fh.Text = "Am";
- ue.lb_ywm.Text = "Americium";
- ue.lb_sx1.Text = "105.970";
- ue.lb_sx2.Text = "14.615";
- ue.lb_sx3.Text = "3.435";
- ue.zwysm = "镅";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Image = img_Hexagonal;
- ue.Hide();
- p_element95.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "96";
- ue.lb_yzzl.Text = "(247)";
- ue.lb_fh.Text = "Cm";
- ue.lb_ywm.Text = "Curium";
- ue.lb_sx1.Text = "108.737";
- ue.lb_sx2.Text = "14.961";
- ue.lb_sx3.Text = "3.539";
- ue.zwysm = "锔";
- ue.BackColor = RareEarthColor;
- //ue.pictureBox1.Visible = true;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element96.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "97";
- ue.lb_yzzl.Text = "(247)";
- ue.lb_fh.Text = "Bk";
- ue.lb_ywm.Text = "Berkelium";
- ue.lb_sx1.Text = "111.676";
- ue.lb_sx2.Text = "15.309";
- ue.lb_sx3.Text = "3.634";
- ue.zwysm = "锫";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element97.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "98";
- ue.lb_yzzl.Text = "(251)";
- ue.lb_fh.Text = "Cf";
- ue.lb_ywm.Text = "Californium";
- ue.lb_sx1.Text = "114.778";
- ue.lb_sx2.Text = "15.661";
- ue.lb_sx3.Text = "3.731";
- ue.zwysm = "锎";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element98.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "99";
- ue.lb_yzzl.Text = "(252)";
- ue.lb_fh.Text = "Es";
- ue.lb_ywm.Text = "Einsteinium";
- ue.lb_sx1.Text = "-";
- ue.lb_sx2.Text = "16.018";
- ue.lb_sx3.Text = "3.829";
- ue.zwysm = "锿";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element99.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "100";
- ue.lb_yzzl.Text = "(257)";
- ue.lb_fh.Text = "Fm";
- ue.lb_ywm.Text = "Fermium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "镄";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element100.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "101";
- ue.lb_yzzl.Text = "(258)";
- ue.lb_fh.Text = "Md";
- ue.lb_ywm.Text = "Mendelevium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "钔";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element101.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "102";
- ue.lb_yzzl.Text = "(259)";
- ue.lb_fh.Text = "No";
- ue.lb_ywm.Text = "Nobelium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "锘";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element102.Controls.Add(ue);
- //
- ue = new User_Element();
- ue.lb_xh.Text = "103";
- ue.lb_yzzl.Text = "(260)";
- ue.lb_fh.Text = "Lr";
- ue.lb_ywm.Text = "Lawrencium";
- ue.lb_sx1.Text = "";
- ue.lb_sx2.Text = "";
- ue.lb_sx3.Text = "";
- ue.zwysm = "铹";
- ue.BackColor = RareEarthColor;
- ue.pictureBox1.Hide();
- ue.Hide();
- p_element103.Controls.Add(ue);
- }
- public void Show_User_element()
- {
- foreach (Control uc in panel1.Controls)
- {
- //第二步,再找到小panel
- if (uc.Name.IndexOf("p_element") > -1)
- {
- //第三步,里面还有一层,这个才是user_element
- foreach (Control uc2 in uc.Controls)
- {
- User_Element ue = (User_Element)uc2;
- ue.Show();
- }
- }
- }
- }
- #endregion
- #region 图像加载
- public void picturebox_fscl()
- {
- Image img = pictureBox1.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox1.Image = img;
- img = pictureBox2.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox2.Image = img;
- img = pictureBox3.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox3.Image = img;
- img = pictureBox4.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox4.Image = img;
- img = pictureBox5.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox5.Image = img;
- img = pictureBox6.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox6.Image = img;
- img = pictureBox7.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox7.Image = img;
- img = pictureBox8.Image;
- img = RePic((Bitmap)img, 32, 32);
- pictureBox8.Image = img;
- }
- public Bitmap RePic(Bitmap mybm, int width, int height)
- {
- Bitmap bm = new Bitmap(width, height);
- int x, y;
- Color pixel;
- for (x = 0; x < width; x++)
- {
- for (y = 0; y < height; y++)
- {
- pixel = mybm.GetPixel(x, y);
- if (pixel.ToArgb() == -16777216)
- {
- bm.SetPixel(x, y, Color.FromArgb(255, 255, 255));
- }
- }
- }
- return bm;
- }
- #endregion
- }
- }
|