private void phoneTile_ScreenshotClick(object sender, EventArgs e) { PhoneTile tile = (PhoneTile)sender; if (tile.PhoneCur == null) { return; } if (tile.PhoneCur.ScreenshotPath == "") { MessageBox.Show("No screenshots available yet."); return; } if (!File.Exists(tile.PhoneCur.ScreenshotPath)) { MessageBox.Show("Could not find file: " + tile.PhoneCur.ScreenshotPath); return; } Cursor = Cursors.WaitCursor; FormScreenshotBrowse formSB = new FormScreenshotBrowse(); formSB.ScreenshotPath = tile.PhoneCur.ScreenshotPath; formSB.ShowDialog(); Cursor = Cursors.Default; }
private void phoneTile_ScreenshotClick(object sender,EventArgs e) { PhoneTile tile=(PhoneTile)sender; if(tile.PhoneCur==null) { return; } if(tile.PhoneCur.ScreenshotPath=="") { MessageBox.Show("No screenshots available yet."); return; } if(!File.Exists(tile.PhoneCur.ScreenshotPath)) { MessageBox.Show("Could not find file: "+tile.PhoneCur.ScreenshotPath); return; } Cursor=Cursors.WaitCursor; FormScreenshotBrowse formSB=new FormScreenshotBrowse(); formSB.ScreenshotPath=tile.PhoneCur.ScreenshotPath; formSB.ShowDialog(); Cursor=Cursors.Default; }