Пример #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            LoadLanguage();

            if (!DpiUtils.CheckHighDpiEnvironment())
            {
                MessageBox.Show(I18N.GetString(@"TCPingInfoView may not be able to adapt to your high DPI environment properly!"), I18N.GetString(@"High DPI Environment Check"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            LoadSetting();

            SetMiniSize();

            ChangedRatio();

            LoadControlsByDpi();

            MainList.AutoGenerateColumns = false;
            MainList.DataSource          = MainTable;
            LoadMainList();

            DateList.AutoGenerateColumns = false;
            DateList.DataSource          = DateTable;
            LoadDateList();

            if (File.Exists(ListPath))
            {
                RawString = Read.ReadTextFromFile(ListPath);
                rawTable  = Read.ReadAddressFromString(RawString);
                LoadFromList();
            }
        }
Пример #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            if (!DpiUtils.CheckHighDpiEnvironment())
            {
                MessageBox.Show(@"TCPingInfoView 可能无法正常适配你的高 DPI 环境!", @"High DPI Environment Check", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            LoadSetting();

            SetMiniSize();

            ChangedRatio();

            LoadControlsByDpi();

            MainList.AutoGenerateColumns = false;
            MainList.DataSource          = MainTable;
            LoadMainList();

            DateList.AutoGenerateColumns = false;
            DateList.DataSource          = DateTable;
            LoadDateList();

            if (File.Exists(ListPath))
            {
                RawString = Read.ReadTextFromFile(ListPath);
                rawTable  = Read.ReadAddressFromString(RawString);
                LoadFromList();
            }
        }