private void btnEdit_Click(object sender, EventArgs e) { // // Get selected document from tree // TreeNode tndocSelected = tvDocumentList.SelectedNode; if (tndocSelected == null) { return; } var cds = new scClientDocSetDocLink(); cds = (scClientDocSetDocLink)tndocSelected.Tag; var Location = cds.clientDocument.Location; var FileName = cds.clientDocument.FileName; var FileType = cds.clientDocument.DocumentType; //string filePathName = // Utils.getFilePathName(Location, // FileName); //if (!string.IsNullOrEmpty(filePathName)) //{ // WordDocumentTasks.OpenDocument(filePathName); //} //else //{ // MessageBox.Show("Document is empty."); //} Utils.OpenDocument(Location, FileName, FileType, vkReadOnly: false); }
private void btnEdit_Click(object sender, EventArgs e) { Utils.OpenDocument(txtLocation.Text, txtFileName.Text, cbxDocumentType.Text, vkReadOnly: false); }