예제 #1
0
        /// <summary>
        /// 创建应用密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemCreatePassword_Click(object sender, EventArgs e)
        {
            CreateOrEditAppPassword formCreate = new CreateOrEditAppPassword();

            formCreate.StartPosition = FormStartPosition.CenterParent;
            formCreate.ShowDialog(this);
        }
예제 #2
0
        private void dgvAppPassword_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var current = dgvAppPassword[0, e.RowIndex];

            CreateOrEditAppPassword formCreate = new CreateOrEditAppPassword((int)current.Value);

            formCreate.StartPosition = FormStartPosition.CenterParent;
            formCreate.ShowDialog(this);
        }