Eliminate an unnecessary save to the clipboard
Name Working Draft DocVersion "Working Draft" Add XML files to comparison
This commit is contained in:
parent
dc7ed2ea5c
commit
0046c61c34
@ -89,15 +89,17 @@ namespace DataLoader
|
|||||||
frmMain.AddError(ex, "error in convert curset.dat");
|
frmMain.AddError(ex, "error in convert curset.dat");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string titlepath = vb.Path + "\\" + "Title";
|
// *** RHM 20120613 - Fix
|
||||||
FileInfo fi = new FileInfo(titlepath);
|
// *** This was naming the DocVersion to the folder name
|
||||||
string thetitle = vb.Title;
|
//string titlepath = vb.Path + "\\" + "Title";
|
||||||
if (File.Exists(titlepath))
|
//FileInfo fi = new FileInfo(titlepath);
|
||||||
{
|
//string thetitle = vb.Title;
|
||||||
StreamReader myReader = new StreamReader(titlepath);
|
//if (File.Exists(titlepath))
|
||||||
thetitle = myReader.ReadLine();
|
//{
|
||||||
myReader.Close();
|
// StreamReader myReader = new StreamReader(titlepath);
|
||||||
}
|
// thetitle = myReader.ReadLine();
|
||||||
|
// myReader.Close();
|
||||||
|
//}
|
||||||
Folder tmpfld = (Folder)parfld;
|
Folder tmpfld = (Folder)parfld;
|
||||||
FormatInfo format = null;
|
FormatInfo format = null;
|
||||||
if (defPlantFmt != null && defPlantFmt != "")
|
if (defPlantFmt != null && defPlantFmt != "")
|
||||||
@ -108,7 +110,7 @@ namespace DataLoader
|
|||||||
format = FormatInfo.Get(1);
|
format = FormatInfo.Get(1);
|
||||||
DocVersion v;
|
DocVersion v;
|
||||||
using(Format fmt = format.Get())
|
using(Format fmt = format.Get())
|
||||||
v = DocVersion.MakeDocVersion(tmpfld, (int)DocVersionType(vb.Path.ToLower()), thetitle, vb.Path.ToLower(), null, fmt, fld_cfg == null ? null : fld_cfg.ToString(), DateTime.Now, "Migration");
|
v = DocVersion.MakeDocVersion(tmpfld, (int)DocVersionType(vb.Path.ToLower()), vb.Title, vb.Path.ToLower(), null, fmt, fld_cfg == null ? null : fld_cfg.ToString(), DateTime.Now, "Migration");
|
||||||
tn.Tag = v;
|
tn.Tag = v;
|
||||||
MigrateDocVersion(v, false);
|
MigrateDocVersion(v, false);
|
||||||
return (object)v;
|
return (object)v;
|
||||||
|
@ -742,8 +742,8 @@ namespace DataLoader
|
|||||||
mb.Append("Backup Complete");
|
mb.Append("Backup Complete");
|
||||||
Status = "Processing Complete";
|
Status = "Processing Complete";
|
||||||
ProcessComplete = false;
|
ProcessComplete = false;
|
||||||
Clipboard.Clear();
|
//Clipboard.Clear();
|
||||||
Clipboard.SetText(mb.ToString());
|
//Clipboard.SetText(mb.ToString());
|
||||||
AddInfo(mb.ToString());
|
AddInfo(mb.ToString());
|
||||||
MessageBox.Show(mb.ToString(), "Processing Complete", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show(mb.ToString(), "Processing Complete", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,10 @@ namespace Sync
|
|||||||
foreach (XmlAttribute xa in xl)
|
foreach (XmlAttribute xa in xl)
|
||||||
if (xa.Value.ToUpper().EndsWith("DLL"))
|
if (xa.Value.ToUpper().EndsWith("DLL"))
|
||||||
retval.Add(xa.Value);
|
retval.Add(xa.Value);
|
||||||
|
xl = doc.DocumentElement.SelectNodes(@"//ns:Content/@Include", nsmgr);
|
||||||
|
foreach (XmlAttribute xa in xl)
|
||||||
|
if (xa.Value.ToUpper().EndsWith("XML"))
|
||||||
|
retval.Add(xa.Value);
|
||||||
xl = doc.DocumentElement.SelectNodes(@"//ns:EmbeddedResource/@Include", nsmgr);
|
xl = doc.DocumentElement.SelectNodes(@"//ns:EmbeddedResource/@Include", nsmgr);
|
||||||
foreach (XmlAttribute xa in xl)
|
foreach (XmlAttribute xa in xl)
|
||||||
if (!xa.Value.ToUpper().EndsWith("LICX"))
|
if (!xa.Value.ToUpper().EndsWith("LICX"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user