private void novaknjigabutton_Click(object sender, EventArgs e)
        {
            AddKnjiga frm = new AddKnjiga();

            frm.Show();
            BindGrid();
        }
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Knjiga    k   = knjigaGetService.GetResponse2("?id=" + dataGridView1.SelectedRows[0].Cells[0].Value).Content.ReadAsAsync <Knjiga>().Result;
            AddKnjiga frm = new AddKnjiga(k);

            frm.Show();
        }
示例#3
0
        private void novaKnjigaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddKnjiga frm = new AddKnjiga();

            frm.MdiParent = this;
            frm.Show();
        }