0% found this document useful (0 votes)
11 views

Form1 Form: Using Using Using Using Using Using Using Using

This document contains C# code for a Windows Forms application with a button. When the button is clicked, it calls the ClickCheck method, passing in the string "Hello" and integer 7 as parameters. The ClickCheck method displays a message box to confirm the click. Comments in the code explain that renaming and reordering parameters in the ClickCheck method were automatically reflected in the button click handler.

Uploaded by

terabajt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Form1 Form: Using Using Using Using Using Using Using Using

This document contains C# code for a Windows Forms application with a button. When the button is clicked, it calls the ClickCheck method, passing in the string "Hello" and integer 7 as parameters. The ClickCheck method displays a message box to confirm the click. Comments in the code explain that renaming and reordering parameters in the ClickCheck method were automatically reflected in the button click handler.

Uploaded by

terabajt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

C:\Documents and Settings\Administrator\My ... 2008\Projects\VTCClass\VTCClass\Form1.cs using using using using using using using using System; System.Collections.

Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms;

namespace VTCClass { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

/* ***************************************************** * sledeci kod je koristan, ali samo kao pocetna vezba * ovo je namerno duzi komentar da bi se videlo * kako se moze jedan komentar pisati * u vise redova * ************************************************** */ private void buttonClick_Click(object sender, EventArgs e) { ClickCheck("Hello", 7); }

private void ClickCheck(string y, int x) { MessageBox.Show("Uspeces"); } /* * u prethodnom slucaju smo desnim klikom na MarkTest (sada se zove ClickCheck) * odabrali opciju Refactor/Rename cime se utomatski menja ime i u * prethodnom Private Voidu takodje, odabirom opcije Refactor/Reorder_Parameters * izvrsena je zamena integera x i stringa y u zagradi - sto je automatski * promenilo mesta reci Hello (koja je string) i broju 7 (koji je * integer tj ceo broj) */ } }

You might also like