예제 #1
0
        private void noviNalogToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormNoviNalog f1 = new FormNoviNalog();

            this.groupBox1.Controls.Clear();
            this.groupBox1.Controls.Add(f1.GetGroupBox());
            f1.GetGroupBox().Dock = DockStyle.Fill;
            f1.GetGroupBox().Show();
        }
예제 #2
0
        private void dgvSpisakNaloga_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string id = dgvSpisakNaloga.CurrentRow.Cells["id"].Value.ToString();

            if (cbVrsta.SelectedValue.ToString() == "1")
            {
                FormNoviNalog f1 = new FormNoviNalog(id);
                f1.ShowDialog();
            }
            if (cbVrsta.SelectedValue.ToString() == "2")
            {
                FormRNGP f1 = new FormRNGP(id);
                f1.ShowDialog();
            }
            if (cbVrsta.SelectedValue.ToString() == "3")
            {
                FormRNPP f1 = new FormRNPP(id);
                f1.ShowDialog();
            }

            btnPrikazeNaloge_Click(null, null);
        }
예제 #3
0
        private void dgvSpisakNaloga_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            FormNoviNalog f1 = new FormNoviNalog(dgvSpisakNaloga.CurrentRow.Cells["id"].Value.ToString());

            f1.ShowDialog();
        }