C # Extracurricular practice--campus second-hand platform (technical article 1)

Source: Internet
Author: User

Before sharing the experience of this extracurricular practice, this time, we will share the lessons learned from the extracurricular practice of knowledge and skills. Although there is a good saying, do not do not prepare the war, but, I want to say is that there are many things in life is not allowed us to be prepared. Encounter things must face the edge, as for the lack of mastery of skills, it depends on your ability, learning ability is fast enough, the ability to withstand pressure is strong enough. In short, there is a war unprepared. The usual training is the ability to solve problems.

interface of the Software

There are a lot of groups whose interface is made of gorgeous background images. But I don't agree with that. I personally feel that people's living environment is very complex, especially the Chinese-style software, a variety of plug-ins, I do not know everyone's annoying, in short I am bored to death. No piece of software is so neat, concise and straightforward.

So my request is that the appearance of the software does not require too much decoration, simple and generous, clear operation.

    1. The transfer of parameters between forms.
      1. Method 1 establishes a Cpublic class, which stores all public variables.
      2. Method 2, override the form's show () function.

        The code for Method 1 does not show that the release 2 is as follows:

    2. The above form is shown in modal mode, where the difference between modal and non-modal is described. The teacher speaks very hard in class, but does not understand, or in the process of practice, profoundly distinguishes between modal and non-modal differences.

      Modal: When a modal form is ejected, the main program pauses from where it was called until the main program runs after the modal form has been closed.

      Non-modal: When a non-modal form is ejected, the main program does not pause, but continues execution. The non-modal form and the main program are independent.

    3. Learn to use the DBHelper () class. Software operation is bound to have data participation, so the database operation is indispensable. Encapsulate what you often use as a class, which is handy when used.
    4. File filters for C #

    1. Single-instance usage (I think it's a single instance, one event only raises one form, and when the form is blocked by the main form, clicking the event again, instead of popping up a form the second time, activates the subsequent form.) )

    1. Grideview's Little knowledge

    1. Does the beginner's guide start? (For novice navigation problems, that is, the program starts again, the user chooses whether to start the Novice guide.) )

      I use only a small trick, in the words of friends, is "cheating", hehe. Now I can only think of such a method. All know that the program is running again, all the variables will be restored to the initial value, we can save this identity variable outside.

    2. A form has a design pattern: it removes the title bar of the form. As we all know, we want to move the form words, we need the title bar, the title bar is gone, this indicates that we want to think of other ways to move the form. Logical algorithm, there is not much to say.

    3. Although it is said that only 2 b people will put the picture into the database, but this time I have tried a bit 2B. I have stored the image in a field of the image type of the database in the form of a 2 block byte.

    4. Next, the stored procedure is used to store the information in the database.

C # Extracurricular practice--campus second-hand platform (technical article 1)

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.