Beispiel #1
0
        public void showStatusTab(string errorText) // Shows Message and Restart Button on Home tab if no connection established (WIP/TO-DO)
        {
            imgSpinner.Visible = false;

            ErrorInfo a = new ErrorInfo
            {
                BackColor = tabHome.BackColor,
                Dock      = DockStyle.Fill
            };

            a.titleStatus.Text   = errorText;
            a.btnRestartApp.Text = rm.GetString("restart");
            a.Show();
            tabHome.Controls.Clear();
            tabHome.Padding = new Padding(0, 0, 0, 0);
            tabHome.Controls.Add(a);
            Controls.Remove(frmSplash);
        }