public SyncFormatPaneItem(SyncPaneWPF parent, string shapeKey, SyncLabShapeStorage shapeStorage, FormatTreeNode[] formats) { InitializeComponent(); this.parent = parent; this.shapeKey = shapeKey; this.shapeStorage = shapeStorage; this.formats = formats; editImage.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap( Properties.Resources.SyncLabEditButton.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); pasteImage.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap( Properties.Resources.SyncLabPasteButton.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); deleteImage.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap( Properties.Resources.SyncLabDeleteButton.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); UpdateToolTipBody(); }
public SyncPaneWPF() { InitializeComponent(); shapeStorage = SyncLabShapeStorage.Instance; copyImage.Source = GraphicsUtil.BitmapToImageSource(Properties.Resources.SyncLabCopyButton); }
public SyncPaneWPF() { InitializeComponent(); shapeStorage = SyncLabShapeStorage.Instance; copyImage.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap( Properties.Resources.SyncLabCopyButton.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); }
public SyncFormatPaneItem(SyncPaneWPF parent, string shapeKey, SyncLabShapeStorage shapeStorage, FormatTreeNode[] formats) { InitializeComponent(); this.parent = parent; this.shapeKey = shapeKey; this.shapeStorage = shapeStorage; this.formats = formats; editImage.Source = GraphicsUtil.BitmapToImageSource(Properties.Resources.SyncLabEditButton); pasteImage.Source = GraphicsUtil.BitmapToImageSource(Properties.Resources.SyncLabPasteButton); deleteImage.Source = GraphicsUtil.BitmapToImageSource(Properties.Resources.SyncLabDeleteButton); UpdateToolTipBody(); }