示例#1
0
文件: Main.cs 项目: Slaper82/Slavo
        private void button1_Click(object sender, EventArgs e)
        {
            frmKlient nowy = new frmKlient();

            nowy.dodano += Main_Load;
            nowy.Text    = "Nowy Klient";
            nowy.ShowDialog();
        }
示例#2
0
文件: Main.cs 项目: Slaper82/Slavo
        private void btnEKlient_Click(object sender, EventArgs e)
        {
            DataTable g         = dgvKlient.DataSource as DataTable;
            DataRow   row       = ((DataRowView)dgvKlient.SelectedRows[0].DataBoundItem).Row;
            Klient    edyt      = new Klient(row);
            frmKlient Edytowany = new frmKlient(edyt);

            Edytowany.dodano += Main_Load;
            Edytowany.ShowDialog();
        }