コード例 #1
0
 public WebChat1998()
 {
     InitializeComponent();
     bsod  = bc.throw9XBSOD(false, BSODCreator.BSODCauses.WimpEnding);
     bsod2 = bc.throw9XBSOD(false, BSODCreator.BSODCauses.PiracyEnding);
     bsod.Hide();
     bsod2.Hide();
 }
コード例 #2
0
ファイル: WebChat1998.cs プロジェクト: pashcovich/Histacom2
        public WebChat1998()
        {
            InitializeComponent();
            bsod = bc.throw9XBSOD(false, BSODCreator.BSODCauses.WimpEnding);
            bsod.Hide();

            textBox1.Text = "If you do not agree to the following rules below DO NOT log into the chat:\n\nNo Bullying\nNo Swearing\nNo Hacking\nNo Illegal Files / Piracy\n\nFailure to follow these rules will result in serious irreversible consequences.";
        }
コード例 #3
0
ファイル: WebChat1998.cs プロジェクト: SleepyyNet/Histacom2
        public WebChat1998()
        {
            InitializeComponent();
            bsod  = bc.throw9XBSOD(false, BSODCreator.BSODCauses.WimpEnding);
            bsod2 = bc.throw9XBSOD(false, BSODCreator.BSODCauses.PiracyEnding);
            bsod.Hide();
            bsod2.Hide();

            this.button1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
            this.button2.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
            this.button3.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
            this.button4.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);

            textBox1.Text = "If you do not agree to the following rules below DO NOT log into the chat:\n\nNo Bullying\nNo Swearing\nNo Hacking\nNo Illegal Files / Piracy\n\nFailure to follow these rules will result in serious irreversible consequences.";
        }
コード例 #4
0
        public Win9XBSOD throw9XBSOD(bool except, BSODCauses type)
        {
            pfc.AddFontFile($@"{SaveSystem.GameDirectory}\Data\windows_command_prompt.ttf");
            Win9XBSOD bsod = new Win9XBSOD();

            foreach (Control ctrl in bsod.Controls)
            {
                ctrl.Font = new System.Drawing.Font(pfc.Families[0], 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((0)));
            }
            bsod.TopMost         = true;
            bsod.FormBorderStyle = FormBorderStyle.None;
            bsod.WindowState     = FormWindowState.Maximized;
            switch (type)
            {
            case BSODCauses.Testing:
                bsod.textBox1.Text = "This is the testing type of BSOD. Hurrah.";
                break;

            case BSODCauses.WimpEnding:
                bsod.textBox1.Text = "An unknown but fatal exception has occured in the program \"wchat98.exe\". The current processes will be terminated.";
                break;

            case BSODCauses.PiracyEnding:
                bsod.textBox1.Text = "Vital elements of Windows were removed, but recovered. However, your data has been lost.";
                bsod.BackColor     = System.Drawing.Color.Black;
                foreach (Control ctrl in bsod.Controls)
                {
                    ctrl.ForeColor = System.Drawing.Color.Silver;
                }
                bsod.label1.BackColor = System.Drawing.Color.Silver;
                bsod.label1.ForeColor = System.Drawing.Color.Black;
                break;

            case BSODCauses.Generic:

                break;

            default:
                break;
            }
            bsod.Show();
            return(bsod);
        }