C # Personnel Management system first day. NET difficulty enhancement and XAML Foundation

Source: Internet
Author: User

Sender: Represents this control

Button btn1= (button) sender;//get this control

Btn1. text= "Button control displays the name";

Collection class:

List<int> list1=new list<int>;

List1. ADD (11);

List1. ADD (22); Add the number 22 to the collection List1

Similar to arrays, but stored in a linked list, less efficient than arrays

Advantages: Variable length

Array:

Int[] A1=new int[2];

a1[0]=11;

a1[1]=22;

Collection Class Other properties: Remove Remove, count statistic length

MessageBox.Show (List1.count.ToString ());

List1.remove (11);

XAML file:

Describes the interface layout. Adding properties to XAML files: Automatically display the list of properties Ctrl+j

Text Box control properties: Show and Hide

The value of visibility is an enumeration type: visible collapsed not visible

txtbox1.visibility=system.windows.visibility.collapsed;

C # Personnel Management system first day. NET difficulty enhancement and XAML Foundation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.