Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 28, 2021 02:25 pm GMT

DotNetDates

I made a little diddy I wanted to share with you all. It's nothing too grand or impressive. I just really like how it turned out and even more happy with the cleanliness of the code.

It's a simple form to play around with date formats in .NET. Here's the GitHub and a screenshot.

Alt Text

It was all written with F# (minus the C# Forms project bit). What is neat though is I only laid out the basic locations of where I wanted things to go using FlowLayoutPanels.

Alt Text

Then passed those to my F# to handle the rest.

using System.Windows.Forms;using DotNetDates.FSharp;namespace DotNetDates{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();            var form = this;            FormBuilder.Build(form, flpFormatMethods, flpFormatSpecifiers, flpCustomFormats, flpCreateYourOwn, flpCreateYourOwnResult);        }    }}

I'm curious to read what you think and thanks for checking it out!


Original Link: https://dev.to/fischgeek/dotnetdates-4ok1

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To