Exemplo n.º 1
0
        public main()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
            ApplicationInitbs application = new ApplicationInitbs();
            int i = application.Applicatbs();

            if (i == 0 || i < 0)
            {
                MessageBox.Show("应用程序已过期!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Application.Exit();
            }
            else
            {
                this.datetxt.Caption = "应用程序剩余使用时间:" + i.ToString() + "天";
            }
        }
Exemplo n.º 2
0
        public main()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
            ApplicationInitbs application = new ApplicationInitbs();
            int i = application.Applicatbs();

            if (i == 0 || i < 0)
            {
                MessageBox.Show("应用程序已过期!!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                Application.Exit();
            }
            else
            {
                this.Text = "酷家乐解析_by 五竹" + "_有效期至" + DateTime.Now.AddDays(i).ToString("D");
            }
        }