Changed icon

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@74 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-10-25 06:50:44 +00:00
parent 3557790aec
commit b4fe1fdb86

View File

@ -271,9 +271,14 @@ namespace Nikse.SubtitleEdit.Forms
} }
} }
internal void Initialize(Icon icon, Subtitle subtitle, string fileName, string title, double framerate) internal void Initialize(Bitmap bitmap, Subtitle subtitle, string fileName, string title, double framerate)
{ {
this.Icon = (Icon)icon.Clone(); if (bitmap != null)
{
IntPtr Hicon = bitmap.GetHicon();
this.Icon = System.Drawing.Icon.FromHandle(Hicon);
}
_originalSubtitle = subtitle; _originalSubtitle = subtitle;
_oldFramerate = framerate; _oldFramerate = framerate;
_subtitleFileName = fileName; _subtitleFileName = fileName;