protected void Initialize(PlainImage pi, bool addToCollection) { if (!addToCollection) { NativeObject.Clear(); } NativeObject.Add(pi); }