示例#1
0
 private void buttonCustomResolution_Click(object sender, EventArgs e)
 {
     using (var cr = new ChooseResolution())
     {
         if (cr.ShowDialog(this) == DialogResult.OK)
         {
             comboBoxResolution.Items[comboBoxResolution.Items.Count - 1] = cr.VideoWidth + "x" + cr.VideoHeight;
             comboBoxResolution.SelectedIndex = comboBoxResolution.Items.Count - 1;
         }
     }
 }
 /// <summary>
 /// The button custom resolution_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void buttonCustomResolution_Click(object sender, EventArgs e)
 {
     using (var cr = new ChooseResolution())
     {
         if (cr.ShowDialog(this) == DialogResult.OK)
         {
             this.comboBoxResolution.Items[this.comboBoxResolution.Items.Count - 1] = cr.VideoWidth + "x" + cr.VideoHeight;
             this.comboBoxResolution.SelectedIndex = this.comboBoxResolution.Items.Count - 1;
         }
     }
 }
示例#3
0
 private void buttonCustomResolution_Click(object sender, EventArgs e)
 {
     ChooseResolution cr = new ChooseResolution();
     if (cr.ShowDialog(this) == DialogResult.OK)
     {
         comboBoxResolution.Items[8] = cr.VideoWidth+ "x" + cr.VideoHeight;
         comboBoxResolution.SelectedIndex = 8;
     }
 }