[Mwinapi-commits] SF.net SVN: mwinapi:[93] trunk/Tools/ContentsSaver
Status: Beta
Brought to you by:
schierlm
From: <sch...@us...> - 2010-02-14 14:17:55
|
Revision: 93 http://mwinapi.svn.sourceforge.net/mwinapi/?rev=93&view=rev Author: schierlm Date: 2010-02-14 14:17:49 +0000 (Sun, 14 Feb 2010) Log Message: ----------- ContentsSaver: - Update copyright notice - Use the new PreviewContent feature while dragging Modified Paths: -------------- trunk/Tools/ContentsSaver/MainForm.cs trunk/Tools/ContentsSaver/Properties/AssemblyInfo.cs Modified: trunk/Tools/ContentsSaver/MainForm.cs =================================================================== --- trunk/Tools/ContentsSaver/MainForm.cs 2010-02-14 14:14:56 UTC (rev 92) +++ trunk/Tools/ContentsSaver/MainForm.cs 2010-02-14 14:17:49 UTC (rev 93) @@ -22,20 +22,20 @@ private void crossHair_CrosshairDragging(object sender, EventArgs e) { - update(); + update(false); } private void crossHair_CrosshairDragged(object sender, EventArgs e) { - update(); + update(true); } - private void update() + private void update(bool finished) { - update(SystemWindow.FromPointEx(MousePosition.X, MousePosition.Y, false, false)); + update(SystemWindow.FromPointEx(MousePosition.X, MousePosition.Y, false, false), finished); } - private void update(SystemWindow sw) + private void update(SystemWindow sw, bool finished) { current = sw; if (sw == null) @@ -47,7 +47,7 @@ { saveAllButton.Enabled = true; className.Text = sw.ClassName; - content = sw.Content; + content = finished ? sw.Content: sw.PreviewContent; if (content == null) { shortText.Text = "<Unknown Type>"; @@ -97,7 +97,7 @@ } } sb.AppendLine("************************************************************"); - sb.AppendLine(" Created by ContentsSaver, (c) 2006 Michael Schierl "); + sb.AppendLine(" Created by ContentsSaver, (c) 2006, 2007, 2010 Michael Schierl "); return sb.ToString(); } @@ -131,11 +131,11 @@ if (controlBox.SelectedIndex == -1) return; if (controlBox.SelectedItem is string) { - update((SystemWindow)windowBox.SelectedItem); + update((SystemWindow)windowBox.SelectedItem, true); } else { - update((SystemWindow)controlBox.SelectedItem); + update((SystemWindow)controlBox.SelectedItem, true); } } Modified: trunk/Tools/ContentsSaver/Properties/AssemblyInfo.cs =================================================================== --- trunk/Tools/ContentsSaver/Properties/AssemblyInfo.cs 2010-02-14 14:14:56 UTC (rev 92) +++ trunk/Tools/ContentsSaver/Properties/AssemblyInfo.cs 2010-02-14 14:17:49 UTC (rev 93) @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ContentsSaver")] -[assembly: AssemblyCopyright("Copyright © 2006, 2007 Michael Schierl")] +[assembly: AssemblyCopyright("Copyright © 2006, 2007, 2010 Michael Schierl")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -29,5 +29,5 @@ // Build Number // Revision // -[assembly: AssemblyVersion("0.2")] -[assembly: AssemblyFileVersion("0.2")] +[assembly: AssemblyVersion("0.2.0.1")] +[assembly: AssemblyFileVersion("0.2.0.1")] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |