private void Form1_Shown(object sender, EventArgs e) { LoadingScreen = new Form_Loading(this, International.GetText("form1_loadtext_CPU")); LoadingScreen.Location = new Point(this.Location.X + (this.Width - LoadingScreen.Width) / 2, this.Location.Y + (this.Height - LoadingScreen.Height) / 2); LoadingScreen.Show(); StartupTimer = new Timer(); StartupTimer.Tick += StartupTimer_Tick; StartupTimer.Interval = 200; StartupTimer.Start(); }
private void Form_Main_Shown(object sender, EventArgs e) { // general loading indicator const int totalLoadSteps = 11; _loadingScreen = new Form_Loading(this, International.GetText("Form_Loading_label_LoadingText"), International.GetText("Form_Main_loadtext_CPU"), totalLoadSteps); SetChildFormCenter(_loadingScreen); _loadingScreen.Show(); _startupTimer = new Timer(); _startupTimer.Tick += StartupTimer_Tick; _startupTimer.Interval = 200; _startupTimer.Start(); }
private void Form_Main_Shown(object sender, EventArgs e) { // general loading indicator const int totalLoadSteps = 11; _loadingScreen = new Form_Loading(this, Tr("Loading, please wait..."), Tr("Querying CPU devices..."), totalLoadSteps); SetChildFormCenter(_loadingScreen); _loadingScreen.Show(); _startupTimer = new Timer(); _startupTimer.Tick += StartupTimer_Tick; _startupTimer.Interval = 200; _startupTimer.Start(); }
private void Form_Main_Shown(object sender, EventArgs e) { // general loading indicator int TotalLoadSteps = 12; LoadingScreen = new Form_Loading(this, International.GetText("Form_Loading_label_LoadingText"), International.GetText("Form_Main_loadtext_CPU"), TotalLoadSteps); SetChildFormCenter(LoadingScreen); LoadingScreen.Show(); StartupTimer = new Timer(); StartupTimer.Tick += StartupTimer_Tick; StartupTimer.Interval = 200; StartupTimer.Start(); }