更新
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
using Autodesk.Revit.UI;
|
||||
|
||||
using System.Drawing;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
@@ -47,7 +48,11 @@ namespace ShrlAlgoToolkit.Revit.Assists
|
||||
{
|
||||
return bitmap == null
|
||||
? null
|
||||
: Imaging.CreateBitmapSourceFromHBitmap(bitmap.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
|
||||
: Imaging.CreateBitmapSourceFromHBitmap(
|
||||
bitmap.GetHbitmap(),
|
||||
IntPtr.Zero,
|
||||
Int32Rect.Empty,
|
||||
BitmapSizeOptions.FromEmptyOptions());
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建按钮
|
||||
@@ -78,7 +83,7 @@ namespace ShrlAlgoToolkit.Revit.Assists
|
||||
//Orientation = System.Windows.Controls.Orientation.Vertical
|
||||
};
|
||||
}
|
||||
private static readonly string AddInPath = typeof(UIAssist).Assembly.Location;
|
||||
private static readonly string AddInPath = Assembly.GetExecutingAssembly().Location;
|
||||
|
||||
#region 静态方法
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user