コード例 #1
0
 public PnlVideoUploadOptions(GPG.Multiplayer.Client.Vaulting.Videos.Video video)
 {
     this.InitializeComponent();
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Unspecified"), "<LOC>Unspecified"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Low"), "<LOC>Low"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Medium"), "<LOC>Medium"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>High"), "<LOC>High"));
     this.comboBoxQuality.SelectedIndex = 0;
     for (int i = 0; i < this.comboBoxQuality.Items.Count; i++)
     {
         if ((this.comboBoxQuality.Items[i] as MultiVal<string, string>).Value2 == video.Quality)
         {
             this.comboBoxQuality.SelectedIndex = i;
             break;
         }
     }
     this.gpgLabelVideoFormat.Text = video.VideoFormat;
     this.numericUpDownHours.Value = video.LengthHours;
     this.numericUpDownMinutes.Value = video.LengthMinutes;
     this.numericUpDownMinutes.Value = video.LengthSeconds;
     this.mVideo = video;
     base.Disposed += new EventHandler(this.PnlVideoDetailsView_Disposed);
     GPG.Multiplayer.Client.Vaulting.Videos.Video.PreviewImageLoaded += new EventHandler(this.Video_PreviewImageLoaded);
     this.VideoAttributeChanged(null, null);
     this.gpgTextBoxPreview_TextChanged(null, null);
 }
コード例 #2
0
 public PnlVideoDetailsView(GPG.Multiplayer.Client.Vaulting.Videos.Video video)
 {
     this.InitializeComponent();
     base.Disposed += new EventHandler(this.PnlVideoDetailsView_Disposed);
     GPG.Multiplayer.Client.Vaulting.Videos.Video.PreviewImageLoaded += new EventHandler(this.Video_PreviewImageLoaded);
     this.gpgLabelVideoFormat.Text = video.VideoFormat;
     this.gpgLabelLength.Text = video.LengthDisplay;
     this.gpgLabelQuality.Text = video.QualityDisplay;
     this.pictureBoxPreview.Image = video.PreviewImage128;
     this.mVideo = video;
 }
コード例 #3
0
 public PnlVideoDownloadOptions(GPG.Multiplayer.Client.Vaulting.Videos.Video video)
 {
     this.InitializeComponent();
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Any"), "<LOC>Any"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Low"), "<LOC>Low"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>Medium"), "<LOC>Medium"));
     this.comboBoxQuality.Items.Add(new MultiVal<string, string>(Loc.Get("<LOC>High"), "<LOC>High"));
     this.comboBoxQuality.SelectedIndex = 0;
     this.comboBoxFormat.Items.Add(Loc.Get("<LOC>Any"));
     foreach (string str in video.ContentType.FileExtensions)
     {
         this.comboBoxFormat.Items.Add(str);
     }
     this.comboBoxFormat.SelectedIndex = 0;
     this.mVideo = video;
 }