コード例 #1
0
ファイル: Other.cs プロジェクト: ljxinternet/BiliDuang
 public static void Show(string t, string tt)
 {
     UI.Dialog dialog = new UI.Dialog(t, tt)
     {
         StartPosition = FormStartPosition.CenterScreen
     };
     dialog.ShowDialog();
 }
コード例 #2
0
        private void materialLabel2_Click(object sender, EventArgs e)
        {
            egg++;
            string msg = "";

            if (egg % 5 == 0)
            {
                switch (egg / 5)
                {
                case 1:
                    msg = "你在干嘛?";
                    break;

                case 2:
                    msg = "你在干嘛?";
                    break;

                case 3:
                    msg = "记得打赏哦(*^▽^*)";
                    break;

                case 4:
                    msg = "お腹(なか)空(す)きました~";
                    break;

                case 5:
                    msg = "お腹(なか)ぺこぺこ~";
                    break;

                case 6:
                    msg = "このぼくは DARLING だ!";
                    break;

                case 7:
                    msg = "どうしてこれなの!";
                    break;

                case 8:
                    msg = "好了不皮了233";
                    egg = -10000000;
                    break;
                }
                Dialog dlg = new Dialog(msg);
                dlg.ShowDialog();
            }
        }