Beispiel #1
0
        public MainForm()
        {
            Server.OnStart();
            InitializeComponent();
            exportHostDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
            Program.InitSettings();
            InitTrayMenu(trayIconMenu);
            InitToolMenu();
            Text = $@"{_assemblyName.Name} - v{_assemblyName.Version}";
#if DEBUG
            Text += @" 调试版";
#else
            Text += @" 正式版";
#endif
            InitHostsTree();
        }