private void OnOpenPDF(object sender, EventArgs e) { CutlistData cd = new CutlistData(); object[] o = cd.GetDrawingData(part); string fullpath = string.Format(@"{0}\{1}", o[2], o[1]); if (o[1].ToString() == @"NULL") { o = cd.GetMetalDrawingData(part); fullpath = string.Format(@"{0}\{1}", o[2], o[1]); } if (o[1] != @"NULL") { System.Diagnostics.Process.Start(fullpath); } }