Here are the examples of the csharp api class System.Drawing.IconLib.MultiIcon.CopyFrom(System.Drawing.IconLib.MultiIcon) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: bdhero
Source File: MultiIcon.cs
Source File: MultiIcon.cs
public void Load(Stream stream) { ILibraryFormat baseFormat; if ((baseFormat = new IconFormat()).IsRecognizedFormat(stream)) { if (mSelectedIndex == -1) { this.Clear(); this.Add(baseFormat.Load(stream)[0]); this[0].Name = "Untitled"; } else { string currentName = this[mSelectedIndex].Name; this[mSelectedIndex] = baseFormat.Load(stream)[0]; this[mSelectedIndex].Name = currentName; } } else if ((baseFormat = new NEFormat()).IsRecognizedFormat(stream)) { CopyFrom(baseFormat.Load(stream)); } else if ((baseFormat = new PEFormat()).IsRecognizedFormat(stream)) { CopyFrom(baseFormat.Load(stream)); } else throw new InvalidFileException(); SelectedIndex = Count > 0 ? 0 : -1; }