private void toolStripButton8_Click(object sender, EventArgs e) { //button se chová jako checkbox if (underline == false) { underline = true; } else { underline = false; } Pismo.zmenaPisma(cbPismo, cbVelikostPisma, rtbDokument, bold, italic, underline); }
private void cbPismo_SelectedIndexChanged(object sender, EventArgs e) { Pismo.zmenaPisma(cbPismo, cbVelikostPisma, rtbDokument, bold, italic, underline); }