public Convert ( object value, |
||
value | object | |
targetType | ||
parameter | object | |
culture | ||
Résultat | 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)); }