public static PictureShow Create(string picurl) { PicUrl = picurl; if (spbh == null) { spbh = new PictureShow(); } return(spbh); }
private void dataGridView2_DoubleClick(object sender, EventArgs e) { int index = dataGridView2.SelectedRows[0].Index; if (index >= 0) { string path = dataGridView2.Rows[index].Cells["jcImgUrl1"].Value.ToString(); PictureShow from = PictureShow.Create(path); from.Focus(); from.Show(); } }
private void PictureShow_FormClosing(object sender, FormClosingEventArgs e) { spbh = null; }