Implemented lblItemID click event to copy to clipboard the full path to the selected item
Changed item property grid dialog title to short path to item selected
This commit is contained in:
parent
e0fbaa29f5
commit
765afe4af2
@ -2330,12 +2330,31 @@ namespace VEPROMS
|
||||
{
|
||||
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null)
|
||||
{
|
||||
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.SelectedItemInfo, tc.SelectedDisplayTabItem.SelectedItemInfo.Path);
|
||||
frmPropGrid pg = new frmPropGrid(tc.SelectedDisplayTabItem.SelectedItemInfo, tc.SelectedDisplayTabItem.SelectedItemInfo.ShortPath);
|
||||
pg.Show();
|
||||
}
|
||||
else
|
||||
MessageBox.Show("Select Item First", "Item not selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
private void lblItemID_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.SelectedItemInfo != null)
|
||||
{
|
||||
ItemInfo myitem = tc.SelectedDisplayTabItem.SelectedItemInfo;
|
||||
FolderInfo myfolder = myitem.MyDocVersion.MyFolder;
|
||||
string sep = "";
|
||||
string fPath = "";
|
||||
while (myfolder.FolderID != myfolder.ParentID)
|
||||
{
|
||||
fPath = myfolder.Name + sep + fPath;
|
||||
sep = "/";
|
||||
myfolder = myfolder.MyParent;
|
||||
}
|
||||
Clipboard.Clear();
|
||||
DataObject mydo = new DataObject(DataFormats.Text, string.Format("{0} - {1}", fPath, myitem.ShortPath));
|
||||
Clipboard.SetDataObject(mydo);
|
||||
}
|
||||
}
|
||||
private void btnFixMSWord_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyDSOTabPanel != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user