private static ResultOf <Circle> GetCircle() { var result = new ResultOf <Circle>(); try { result.Value = new Circle(); } catch (NullReferenceException e) { result.AddMessage(e.Message); } return(result); }
private static ResultOf<Circle> GetCircle() { var result = new ResultOf<Circle>(); try { result.Value = new Circle(); } catch (NullReferenceException e) { result.AddMessage(e.Message); } return result; }
public static ResultOf <Image> GetImage(EventHandler processor) { var result = new ResultOf <Image>(); try { result.Value = new Image(); Application.Idle += processor; } catch (NullReferenceException e) { result.AddMessage(e.Message); } return(result); }
public static ResultOf<Desktop> GetDesktop(EventHandler processor) { var result = new ResultOf<Desktop>(); try { result.Value = new Desktop(); Application.Idle += processor; } catch (NullReferenceException e) { result.AddMessage(e.Message); } return result; }