コード例 #1
0
 private void ButtonStylesClick(object sender, EventArgs e)
 {
     if (comboBoxSubtitleFormats.Text == new AdvancedSubStationAlpha().Name)
     {
         var sub = new Subtitle();
         var form = new SubStationAlphaStyles(sub, new AdvancedSubStationAlpha());
         form.MakeOnlyOneStyle();
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             _assStyle = form.Header;
         }
     }
     else if (comboBoxSubtitleFormats.Text == new SubStationAlpha().Name)
     {
         var sub = new Subtitle();
         var form = new SubStationAlphaStyles(sub, new SubStationAlpha());
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             _ssaStyle = form.Header;
         }
     }
 }