Form_PeriodicTable.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace OTSPartA_STDEditor
  11. {
  12. public partial class Form_PeriodicTable : Form
  13. {
  14. //国际化
  15. Language lan;
  16. System.Collections.Hashtable table;
  17. public Form_PeriodicTable()
  18. {
  19. InitializeComponent();
  20. }
  21. public Form_PeriodicTable(Point point)
  22. {
  23. InitializeComponent();
  24. }
  25. private void Form_PeriodicTable_Load(object sender, EventArgs e)
  26. {
  27. lan = new Language(this);
  28. table = lan.GetNameTable("Form_MaxEDSRules");
  29. if (table["language"].ToString() == "EN")
  30. {
  31. this.BackgroundImage = global::OTSPartA_STDEditor.Properties.Resources.PeriodicTable_EN;
  32. }
  33. else
  34. {
  35. this.BackgroundImage = global::OTSPartA_STDEditor.Properties.Resources.PeriodicTable_ZH;
  36. }
  37. }
  38. //private const int CP_NOCLOSE_BUTTON = 0x200;
  39. //protected override CreateParams CreateParams
  40. //{
  41. // get
  42. // {
  43. // CreateParams myCp = base.CreateParams;
  44. // myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON;
  45. // return myCp;
  46. // }
  47. //}
  48. }
  49. }