Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         if (TimeSpan2.TryParse(parseText.Text, out var ts))
         {
             parseLabel.Text      = ts.ToString(formatTextBox.Text, formatInfo);
             timeSpanPicker.Value = ts;
         }
     }
     catch (Exception ex)
     {
         parseLabel.Text = ex.Message;
     }
 }