TAILIEUCHUNG - Buit Windows By C.Net (Phần 3) part 4

Tham khảo tài liệu 'buit windows by (phần 3) part 4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHƯƠNG 3-4 x y dựng ứng dụng Windows Forms 335 jM 205 tb 206 if I I 207 return 208 restname 209 210 211 212 if icon 0 213 214 Listviewitem item new Listviewltem resname ico 215 8 216 item 217 218 219 220 221 private void buttonl_Click object sender. e 222 223 if 0 224 225 Kiểm tra tên của tắt cả resource 226 foreach ListViewItem item in 227 228 if Undefined 229 230 All resources must have names 231 return 232 233 234 235 Lấy tên. file resx 236 SavePileDialog dig new SaveFileDialog 237 dig .Title Save .resxfile 238 dig. Filter XML resource files I . resx 239 if 240 return 241 242 Tạo lớp ghi tài nguyên 243 rw 244 new . ResXResourceWriter 245 PHẦN III Windows Foi 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 Duyệt qua các mục trong danh sách foreach Listviewitem item in switch case 0 bitmap Images goto case 2 case 1 text files sr new 1 -Text string inputline do inputline if inputline null string splitline inputline . Split new char 1 2 if splitline. Length 2 .Trimstart . r split line 0 . TrimEnd .Trimstart splitline 1 while inputline null break case 2 icons Im 1 .Text im break rw. Generate CHƯƠNG 3-4 Xây dựng ứng dụng Windows Forms 337g 290 291 292 private void ListViewl_KeyDown object sender 293 e 294 295 if 0 296 return 297 if .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.