public override int GetHashCode() { int hashCode = 1695118391; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Id); hashCode = hashCode * -1521134295 + EqualityComparer <InlineKeyboardMarkup> .Default.GetHashCode(ReplyMarkup); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ParseMode); hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity> > .Default.GetHashCode(CaptionEntities); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(VideoUrl); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(MimeType); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ThumbUrl); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Caption); hashCode = hashCode * -1521134295 + VideoWidth.GetHashCode(); hashCode = hashCode * -1521134295 + VideoHeight.GetHashCode(); hashCode = hashCode * -1521134295 + VideoDuration.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + EqualityComparer <InputMessageContent> .Default.GetHashCode(InputMessageContent); return(hashCode); }
/// <summary> /// If the previewers loading went okay. /// </summary> private async Task SucessLoading() { //Size Labels WidthTextBlock.Text = VideoWidth.ToString("d", CultureInfo.CurrentUICulture); HeightTextBlock.Text = VideoHeight.ToString("d", CultureInfo.CurrentUICulture); LowerSelectionImage.Source = _lowerRenderTargetBitmap = new RenderTargetBitmap(VideoWidth, VideoHeight, 96, 96, PixelFormats.Pbgra32); UpperSelectionImage.Source = _upperRenderTargetBitmap = new RenderTargetBitmap(VideoWidth, VideoHeight, 96, 96, PixelFormats.Pbgra32); SelectionSlider.Maximum = Duration.TotalMilliseconds; SelectionSlider.LowerValue = 0; SelectionSlider.UpperValue = SelectionSlider.Maximum; //Refresh the first previewer manually, since it initially stays at the first frame. await RenderPreview(); if (UserSettings.All.VideoImporter == 0) { await RenderPreview(false); } //Update the UI. Cursor = Cursors.Arrow; ImporterComboBox.IsEnabled = true; DetailsGrid.IsEnabled = true; SelectionSlider.IsEnabled = true; OkButton.IsEnabled = true; PreviewerGrid.Opacity = 1; LoadingLabel.Visibility = Visibility.Collapsed; DetailsGrid.Visibility = Visibility.Visible; MinWidth = Width; }
public MediaEncodingSetup(string source, string dest, string thumb, VideoHeight videoHeight) { Source = source; Dest = dest; Thumb = thumb; VideoHeight = videoHeight; NotEncoding = false; }