Convert() public method

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object
 private void playerBusiness_PositionChanged(object sender, EventArgs e)
 {
     Business.MediaTimeConverter Conv = new Business.MediaTimeConverter();
     PositionText.Text = string.Format("{0} / {1}",
                                       Conv.Convert(playerBusiness.Position, typeof(string), null, null),
                                       Conv.Convert(playerBusiness.CurrentVideo.Length, typeof(string), null, null));
 }
 private void positionTimer_Tick(object sender, EventArgs e) {
     Business.MediaTimeConverter Conv = new Business.MediaTimeConverter();
     if (player.NaturalDuration.HasTimeSpan) {
         PositionText.Text = string.Format("{0} / {1}",
             Conv.Convert((decimal)player.Position.TotalSeconds, typeof(string), null, null),
             Conv.Convert((decimal)player.NaturalDuration.TimeSpan.TotalSeconds, typeof(string), null, null));
     } else {
         PositionText.Text = Conv.Convert((decimal)player.Position.TotalSeconds, typeof(string), null, null).ToString();
     }
 }
 private void positionTimer_Tick(object sender, EventArgs e)
 {
     Business.MediaTimeConverter Conv = new Business.MediaTimeConverter();
     if (player.NaturalDuration.HasTimeSpan)
     {
         PositionText.Text = string.Format("{0} / {1}",
                                           Conv.Convert((decimal)player.Position.TotalSeconds, typeof(string), null, null),
                                           Conv.Convert((decimal)player.NaturalDuration.TimeSpan.TotalSeconds, typeof(string), null, null));
     }
     else
     {
         PositionText.Text = Conv.Convert((decimal)player.Position.TotalSeconds, typeof(string), null, null).ToString();
     }
 }
 private void playerBusiness_PositionChanged(object sender, EventArgs e) {
     MediaTimeConverter Conv = new MediaTimeConverter();
     PositionText.Text = string.Format("{0} / {1}",
         Conv.Convert(playerBusiness.Position, typeof(string), null, null),
         Conv.Convert(playerBusiness.CurrentVideo.Length, typeof(string), null, null));
 }