private void btnUcitaj_Click(object sender, EventArgs e) { foreach (var pControl in panelOdabir.Controls) { RadioButton rButton = pControl as RadioButton; if (rButton != null && rButton.Checked) { tip = (TipIspis)rButton.Tag; break; } } this.MaximizeBox = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; this.btnZatvori.Location = new System.Drawing.Point(497, 327); this.AcceptButton = null; panelOdabir.Visible = false; panelLoad.Visible = true; postaviNaslov(); if (tip == TipIspis.Prijamnice || tip == TipIspis.Otpremnice) { frmIspisOdabir frmIspisOdabir = new frmIspisOdabir(tip, this); frmIspisOdabir.ShowDialog(); } UcitajReport(); }
/// <summary> /// Konstruktor za formu ispis /// </summary> /// <param name="tip">Vrsta dokumenta za ispisa</param> public frmIspis(TipIspis odabraniTip, int idDok = -1) { InitializeComponent(); tip = odabraniTip; pID = idDok; postaviNaslov(); if (tip == TipIspis.Prijamnice || tip == TipIspis.Otpremnice && pID == -1) { frmIspisOdabir frmIspisOdabir = new frmIspisOdabir(tip, this); frmIspisOdabir.ShowDialog(); } UcitajReport(); }
/// <summary> /// Konstruktor za formu ispis /// </summary> /// <param name="tip">Vrsta dokumenta za ispisa</param> public frmIspis(TipIspis odabraniTip, int idDok=-1) { InitializeComponent(); tip = odabraniTip; pID = idDok; postaviNaslov(); if (tip == TipIspis.Prijamnice || tip == TipIspis.Otpremnice && pID==-1) { frmIspisOdabir frmIspisOdabir = new frmIspisOdabir(tip, this); frmIspisOdabir.ShowDialog(); } UcitajReport(); }