Académique Documents
Professionnel Documents
Culture Documents
Home C# / C Sharp
1. 2D Graphics 2. Class Interface 3. Collections Data Structure 4. Components 5. Data Types 6. Database ADO.net 7. Date Time 8. Design Patterns 9. Development Class 10. Event 11. File Stream 12. Generics 13. GUI Windows Form 14. Internationalization I18N 15. Language Basics 16. LINQ 17. Network 18. Office 19. Reflection 20. Regular Expressions 21. Security 22. Services Event 23. Thread 24. Web Services 25. Windows 26. Windows Presentation Foundation 27. XML 28. XML LINQ
Screenshots
Search
uigSse; sn ytm uigSse.rwn; sn ytmDaig uigSse.olcin; sn ytmCletos uigSse.opnnMdl sn ytmCmoetoe; uigSse.idw.om; sn ytmWnosFrs uigSse.aa sn ytmDt; pbi casFr1:Sse.idw.om.om{ ulc ls om ytmWnosFrsFr piaeSse.idw.om.ruBxgopo1 rvt ytmWnosFrsGopo ruBx; piaeSse.idw.om.hcBxceko1 rvt ytmWnosFrsCeko hcBx; piaeSse.idw.om.hcBxceko2 rvt ytmWnosFrsCeko hcBx; piaeSse.idw.om.hcBxceko3 rvt ytmWnosFrsCeko hcBx; piaeSse.idw.om.aiBto rdoutn; rvt ytmWnosFrsRdoutn aiBto1 piaeSse.idw.om.aiBto rdoutn; rvt ytmWnosFrsRdoutn aiBto2 piaeSse.idw.om.aiBto rdoutn; rvt ytmWnosFrsRdoutn aiBto3 piaeSse.idw.om.utnbto1 rvt ytmWnosFrsBto utn; piaeSse.opnnMdlCnanrcmoet =nl; rvt ytmCmoetoe.otie opnns ul pbi Fr1){ ulc om( IiilzCmoet) ntaieopnn(; } piaevi IiilzCmoet){ rvt od ntaieopnn( ti.ruBx =nwSse.idw.om.ruBx) hsgopo1 e ytmWnosFrsGopo(; ti.hcBx =nwSse.idw.om.hcBx) hsceko1 e ytmWnosFrsCeko(; ti.hcBx =nwSse.idw.om.hcBx) hsceko2 e ytmWnosFrsCeko(; ti.hcBx =nwSse.idw.om.hcBx) hsceko3 e ytmWnosFrsCeko(; ti.aiBto1=nwSse.idw.om.aiBto(; hsrdoutn e ytmWnosFrsRdoutn) ti.aiBto2=nwSse.idw.om.aiBto(; hsrdoutn e ytmWnosFrsRdoutn) ti.aiBto3=nwSse.idw.om.aiBto(; hsrdoutn e ytmWnosFrsRdoutn) ti.utn =nwSse.idw.om.utn) hsbto1 e ytmWnosFrsBto(; ti.ruBx.upnLyu(; hsgopo1Ssedaot) ti.upnLyu(; hsSsedaot) / / / gopo1 / ruBx / / ti.ruBx.otosAdag(e Sse.idw.om.oto[ { hsgopo1Cnrl.dRnenw ytmWnosFrsCnrl] ti.aiBto1 hsrdoutn, ti.aiBto2 hsrdoutn, ti.aiBto3) hsrdoutn}; ti.ruBx.oain=nwSse.rwn.on(,10; hsgopo1Lcto e ytmDaigPit8 2) ti.ruBx.ae="ruBx" hsgopo1Nm gopo1; ti.ruBx.ie=nwSse.rwn.ie10 14; hsgopo1Sz e ytmDaigSz(2, 4) ti.ruBx.aIdx=0 hsgopo1Tbne ; ti.ruBx.aSo =fle hsgopo1Tbtp as; ti.ruBx.et="oo" hsgopo1Tx Clr; ti.ruBx.ne + nwSse.vnHnlrti.ruBx_ne) hsgopo1Etr = e ytmEetade(hsgopo1Etr; / / / ceko1 / hcBx / / ti.hcBx.oain=nwSse.rwn.on(,8; hsceko1Lcto e ytmDaigPit8 ) ti.hcBx.ae="hcBx" hsceko1Nm ceko1; ti.hcBx.aIdx=1 hsceko1Tbne ; ti.hcBx.et="ice; hsceko1Tx Crl"
www.java2s.com/Code/CSharp/GUI-Windows-Form/Getselectedradiobutton.htm
1/3
ti.hcBx.et="ice; hsceko1Tx Crl" / / / ceko2 / hcBx / / ti.hcBx.oain=nwSse.rwn.on(,4) hsceko2Lcto e ytmDaigPit8 0; ti.hcBx.ae="hcBx" hsceko2Nm ceko2; ti.hcBx.aIdx=2 hsceko2Tbne ; ti.hcBx.et="etnl" hsceko2Tx Rcage; / / / ceko3 / hcBx / / ti.hcBx.oain=nwSse.rwn.on(,7) hsceko3Lcto e ytmDaigPit8 2; ti.hcBx.ae="hcBx" hsceko3Nm ceko3; ti.hcBx.aIdx=3 hsceko3Tbne ; ti.hcBx.et="tig; hsceko3Tx Srn" / / / rdoutn / aiBto1 / / ti.aiBto1Lcto =nwSse.rwn.on(,3) hsrdoutn.oain e ytmDaigPit8 2; ti.aiBto1Nm ="aiBto1; hsrdoutn.ae rdoutn" ti.aiBto1Tbne =4 hsrdoutn.aIdx ; ti.aiBto1Tx ="e" hsrdoutn.et Rd; ti.aiBto1Cekdhne + nwSse.vnHnlrti.aiBto1Cekdhne) hsrdoutn.hceCagd = e ytmEetade(hsrdoutn_hceCagd; / / / rdoutn / aiBto2 / / ti.aiBto2Lcto =nwSse.rwn.on(,6) hsrdoutn.oain e ytmDaigPit8 4; ti.aiBto2Nm ="aiBto2; hsrdoutn.ae rdoutn" ti.aiBto2Tbne =5 hsrdoutn.aIdx ; ti.aiBto2Tx ="re" hsrdoutn.et Gen; / / / rdoutn / aiBto3 / / ti.aiBto3Lcto =nwSse.rwn.on(,9) hsrdoutn.oain e ytmDaigPit8 6; ti.aiBto3Nm ="aiBto3; hsrdoutn.ae rdoutn" ti.aiBto3Tbne =6 hsrdoutn.aIdx ; ti.aiBto3Tx ="le; hsrdoutn.et Bu" / / / bto1 / utn / / ti.utn.oain=nwSse.rwn.on(,20; hsbto1Lcto e ytmDaigPit8 8) ti.utn.ae="utn" hsbto1Nm bto1; ti.utn.ie=nwSse.rwn.ie12 3) hsbto1Sz e ytmDaigSz(1, 2; ti.utn.aIdx=4 hsbto1Tbne ; ti.utn.et="rw; hsbto1Tx Da" ti.utn.lc + nwSse.vnHnlrti.utn_lc) hsbto1Cik = e ytmEetade(hsbto1Cik; / / / Fr1 / om / / ti.uoclBsSz =nwSse.rwn.ie5 1) hsAtSaeaeie e ytmDaigSz(, 3; ti.letie=nwSse.rwn.ie48 37; hsCinSz e ytmDaigSz(0, 1) ti.otosAdag(e Sse.idw.om.oto[ { hsCnrl.dRnenw ytmWnosFrsCnrl] ti.utn, hsbto1 ti.hcBx, hsceko3 ti.hcBx, hsceko2 ti.hcBx, hsceko1 ti.ruBx}; hsgopo1) ti.ae="om" hsNm Fr1; ti.et="hcBxadRdoutnSml" hsTx Ceko n aiBto ape; ti.ruBx.eueaotfle; hsgopo1RsmLyu(as) ti.eueaotfle; hsRsmLyu(as)
} [TTra] SAhed sai vi Mi( ttc od an) { ApiainRnnwFr1); plcto.u(e om() } piaevi gopo1Etrojc sne,Sse.vnAg e rvt od ruBx_ne(bet edr ytmEetrs ) { CnoeWieie"ru bxetreet) osl.rtLn(gop o ne vn"; } piaevi rdoutn_hceCagdojc sne,Sse.vnAg e rvt od aiBto1Cekdhne(bet edr ytmEetrs ) { CnoeWieie"ai Bto cekdcagdeet) osl.rtLn(Rdo utn hce hne vn"; } piaevi bto1Cikojc sne,Sse.vnAg e rvt od utn_lc(bet edr ytmEetrs ) { Gahc g=Gahc.rmwdti.ade; rpis rpisFoHn(hsHnl) Srn sr="; tig t " Rcager =nwRcage10 5,20 20; etnl c e etnl(5, 0 5, 5) i(aiBto1Cekd frdoutn.hce) { sr="e" t rd; } i(aiBto2Cekd frdoutn.hce) { sr=Gen; t+"re"
www.java2s.com/Code/CSharp/GUI-Windows-Form/Getselectedradiobutton.htm
2/3
i (hcBx.hce) f ceko1Cekd { sr=Elpe; t+"lis" } i (hcBx.hce) f ceko2Cekd { sr+ "etnl" t = Rcage; } i (hcBx.hce) f ceko3Cekd { gFlRcagenwSldrs(oo.ht) r) .iletnl(e oiBuhClrWie, c; gDaSrn(t,nwFn(Vraa,1) nwSldrs(oo.lc) r) .rwtigsr e ot"edn" 2, e oiBuhClrBak, c; }
} }
www.java2s.com/Code/CSharp/GUI-Windows-Form/Getselectedradiobutton.htm
3/3