コード例 #1
0
 /// <summary>
 ///     Handles the CheckedChanged event of the print mode controls.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 /// <exception cref="System.NotSupportedException"></exception>
 private void modeBtn_CheckedChanged(object sender, EventArgs e)
 {
     if (tilingFullBtn.Checked)
     {
         _printMode            = TilingPrintMode.TilingFull;
         selectTileBtn.Visible = false;
     }
     else if (tilingLinesBtn.Checked)
     {
         _printMode            = TilingPrintMode.TilingLines;
         selectTileBtn.Visible = false;
     }
     else if (tileFullBtn.Checked)
     {
         _printMode            = TilingPrintMode.SingleTileFull;
         selectTileBtn.Visible = true;
     }
     else if (tileLinesBtn.Checked)
     {
         _printMode            = TilingPrintMode.SingleTileLines;
         selectTileBtn.Visible = true;
     }
     else
     {
         throw new NotSupportedException();
     }
 }
コード例 #2
0
 /// <summary>
 ///     Handles the CheckedChanged event of the print mode controls.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 /// <exception cref="System.NotSupportedException"></exception>
 private void modeBtn_CheckedChanged(object sender, EventArgs e)
 {
     if (tilingFullBtn.Checked)
     {
         _printMode = TilingPrintMode.TilingFull;
         selectTileBtn.Visible = false;
     }
     else if (tilingLinesBtn.Checked)
     {
         _printMode = TilingPrintMode.TilingLines;
         selectTileBtn.Visible = false;
     }
     else if (tileFullBtn.Checked)
     {
         _printMode = TilingPrintMode.SingleTileFull;
         selectTileBtn.Visible = true;
     }
     else if (tileLinesBtn.Checked)
     {
         _printMode = TilingPrintMode.SingleTileLines;
         selectTileBtn.Visible = true;
     }
     else throw new NotSupportedException();
 }