An Interest In:
Web News this Week
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
May 28, 2021 02:25 pm GMT
Original Link: https://dev.to/fischgeek/dotnetdates-4ok1
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.
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.
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To