Beispiel #1
0
        private void update_shuiwuUser_Click(object sender, EventArgs e)
        {
            user_quanxian quanxian = new user_quanxian("shuiwu");

            quanxian.StartPosition = FormStartPosition.CenterParent;
            quanxian.Show();
        }
Beispiel #2
0
        private void grid_DoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow data = grid1.CurrentRow;

            if (data == null)
            {
                MessageBox.Show("请选择一行!");
            }
            user_quanxian quanxian = new user_quanxian(data.Cells["userName"].Value.ToString());

            quanxian.StartPosition = FormStartPosition.CenterScreen;
            quanxian.Show(this);
        }