Program.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Windows.Forms;
  3. namespace LrcTool
  4. {
  5. public static class Program
  6. {
  7. [STAThread]
  8. public static void Main()
  9. {
  10. Application.EnableVisualStyles();
  11. Application.SetCompatibleTextRenderingDefault(false);
  12. var frmMain = new Form { Text = Application.ProductName, Width = 1024, Height = 768 };
  13. var tabs = new TabControl
  14. {
  15. Dock = DockStyle.Fill,
  16. TabPages =
  17. {
  18. new TabPage("LRC Kanji Hiragana inject")
  19. {
  20. Controls = {LrcKanjiHiraganaInjectPage.Create(frmMain)}
  21. },
  22. new TabPage("LRC Fetcher")
  23. {
  24. Controls = {new LrcFetcherPage{Dock = DockStyle.Fill}}
  25. },
  26. new TabPage("LRC PreProcessing")
  27. {
  28. Controls = { new LrcPreProcessPage { Dock = DockStyle.Fill } }
  29. }
  30. }
  31. };
  32. frmMain.Controls.Add(tabs);
  33. Application.Run(frmMain);
  34. }
  35. }
  36. }