Example #1
0
        private void tsbStart_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewWorks.SelectedRows.Count == 0)
            {
                return;
            }
            bool isLincence = LisenceManager.IsKeyUsing();

            if (!isLincence)
            {
                if (MessageBox.Show(
                        "您没有许可权限,是否需要注册?",
                        "提示",
                        MessageBoxButtons.OKCancel,
                        MessageBoxIcon.Question,
                        MessageBoxDefaultButton.Button1) == DialogResult.OK)
                {
                    FrmLinence frmLinence = new FrmLinence();
                    frmLinence.ShowDialog();
                }
                return;
            }
            DataGridViewRow row      = this.dataGridViewWorks.SelectedRows[0];
            WorkInfo        workInfo = row.Tag as WorkInfo;

            this.StartDownLoad(workInfo, row);
        }
Example #2
0
        private void btnLincence_Click(object sender, EventArgs e)
        {
            FrmLinence frmLinence = new FrmLinence();

            frmLinence.Show();
        }