private void layoutView1_DoubleClick(object sender, EventArgs e) { //Application.StartupPath + "\\Slike\\" + task.id_task.ToString() + "\\" + id.ToString() Komentar kom = (Komentar)layoutView1.GetRow(layoutView1.FocusedRowHandle); string[] fajlovi = null; if (Directory.Exists(System.Windows.Forms.Application.StartupPath + "\\Slike\\" + task.id_task.ToString() + "\\" + kom.id.ToString())) { fajlovi = Directory.GetFiles(System.Windows.Forms.Application.StartupPath + "\\Slike\\" + task.id_task.ToString() + "\\" + kom.id.ToString()); } else { XtraMessageBox.Show("Nedostaju full res slike!"); goto kraj; } if (fajlovi.Count() > 0) { FormSlike frmslike = new FormSlike(fajlovi); frmslike.Show(); } kraj :; /* FormKomentarDetalj fkdetalj = new FormKomentarDetalj(kom.sadrzaj); * fkdetalj.ShowDialog();*/ }
private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { Komentar kom = (Komentar)layoutView1.GetRow(layoutView1.FocusedRowHandle); string[] fajlovi = null; if (Directory.Exists(System.Windows.Forms.Application.StartupPath + "\\Slike\\" + task.id_task.ToString() + "\\" + kom.id.ToString())) { fajlovi = Directory.GetFiles(System.Windows.Forms.Application.StartupPath + "\\Slike\\" + task.id_task.ToString() + "\\" + kom.id.ToString()); } else { XtraMessageBox.Show("Nedostaju full res slike!"); goto kraj; } if (fajlovi.Count() > 0) { FormSlike frmslike = new FormSlike(fajlovi); frmslike.Show(); } kraj :; }