try{
Application.Run(new FormMain());
}catch(Exception e){
ThreadException(sender, new ThreadExceptionEventArgs(e));
}
throw new Exception("Test");
public static SortedDictionary<string, string> convert(Type enumType)
{
SortedDictionary<string, string> ret = new SortedDictionary<string, string>();
foreach (object value in Enum.GetValues(enumType)) {
//....
}
}
///....
convert(typeof(MyEnum));
[DllImport("User32.dll", CharSet = CharSet.Unicode)]
private static extern int OpenClipboard(
IntPtr hWndNewOwner
);
[DllImport("User32.dll", CharSet = CharSet.Unicode)]
private static extern int CloseClipboard();
[DllImport("User32.dll", CharSet = CharSet.Unicode)]
private static extern int EmptyClipboard();
[DllImport("User32.dll", CharSet = CharSet.Unicode)]
private static extern IntPtr GetClipboardData(
uint uFormat
);
[DllImport("User32.dll", CharSet = CharSet.Unicode)]
private static extern IntPtr SetClipboardData(
uint uFormat,
IntPtr hMem
);
sex = e.target.getAttribute("id");
localStorage.setItem("sex", e.target.getAttribute("id"));
sex = (document.querySelector("#gender .calculating__choose-item_active") || document.querySelector("#female")).getAttribute("id");
localStorage.setItem("sex", sex);
fabric.util.requestAnimFrame(animate, canvas.getElement());
canvas.renderAll();
canvas.renderAll();
,чтобы в итоге у вас был один цикл для всех анимаций, а не десятки разрозненно запущенных анимаций где у каждой свой цикл