Feed on
Subscription

Software of smartphone of the development that use C# :Turn a case (one)




    is the closest,Use C# developed software of a smartphone:Turn a case.The characteristic that introduces this software first:

    1. Can move on the smartphone,Also can move on the computer.

    2. The spot can be protected when quiting a program,Move to regain former position automatically again next time.

...

C# implements the program code of USB interface




C# implements the program code of USB interface.





Namespace ConsoleApplication1
{Class Program
{Static Void Main(string[] Args)
{
USB Usb;Usb = New UDisk();// inserts U dishUsb.OutputFile();// from U dish numerate fileUsb.InputFile();// past U dish keep a fileUsb.Dispose();// pulls out U dish
Console.WriteLine("");Usb = New MDisk();// inserts mobile hard diskUsb.OutputFile();// numerates from mobile hard disk fileUsb.InputFile();// keeps a file toward mobile hard diskUsb.Dispose();// pulls out mobile hard disk
Console.WriteLine("");Usb = New MP4();// inserts MP4Usb.OutputFile();// numerates from MP4 fileUsb.InputFile();// keeps a file toward MP4Usb.Dispose();// pulls out MP4

...

Software of smartphone of the development that use C# :Turn a case (one)




    is the closest,Use C# developed software of a smartphone:Turn a case.The characteristic that introduces this software first:

    1. Can move on the smartphone,Also can move on the computer.

    2. The spot can be protected when quiting a program,Move to regain former position automatically again next time.

...

The string that undertakes oversight size is written in C# is replaced




The string that     should have oversight size is written in C# is replaced,The Replace that uses String is very difficult those who accomplish,Although spent extremely big effort to accomplish,Efficiency is remained very low,Accurate method should be to use criterion expression.

...

Software of smartphone of the development that use C# :Turn a case (two)




    is in go up an article " software of smartphone of development of use C# :Turn a case (one) " in,I made overall introducing to pushing case order.This,I introduce document of Common/Fcl.cs source program first.

1 Using System;
    2 Using System.IO;
    3 Using System.Drawing;
    4
    5 Namespace Skyiv.Ben.PushBox.Common
    6 {
    7 ///
Support of.NET Framework is here,And.NET Compact Framework does not support east
    9 ///
    10 Static Class Fcl
    11 {
    12 ///
    13 /// gets the line feed string that defines for this environment.- - Environment
    14 ///
    15 Public Static String NewLine {Get {Return "\r\n"; } }
    16
    17 ///
    18 /// opens file of a text,Read in all travel of the file a string,Shut this file next.- - File
    19 ///
    20 /// should open the file that takes with undertaking reading
    21 /// includes a file the string of all travel
    22 Public Static String ReadAllText(string Path)
    23 {
    24 String Text = "";
    25 If (File.Exists(path) )
    26 {
    27 Using (StreamReader Sr = New StreamReader(path, pub.Encode) )
    28 {
    29 Text = Sr.ReadToEnd();
    30}
    31}
    32 Return Text;
    33}
    34
    35 ///
    36 /// founds a new document,Amid writes designation string,Shut this file next.- - File
    37 ///
    38 /// wants the file that keeps
    39 /// should write the string of the file
    40 Public Static Void WriteAllText(string Path, string Contents)
    41 {
    42 Using (StreamWriter Sw = New StreamWriter(path, false, pub.Encode) )
    43 {
    44 Sw.Write(contents);
    45}
    46}
    47
    48 ///
    49 /// adds appointed Size appointed Point.- - Point
    50 ///
    51 /// wants additive Point
    52 /// wants additive Size
The result of operation of addition of     53 ///
    54 Public Static Point Add(Point Point, size Size)
    55 {
    56 Return New Point(point.X + Size.Width, point.Y + Size.Height);
    57}
    58
    59 ///
    60 /// changes the size of one dimension group for appointed new volume.- - Array
    61 ///
The type of element of array of     62 ///
    63 /// should adjust the one dimension array of size
The size of new array of     64 ///
    65 Public Static Void Resize(ref T[] Array, int NewSize)
    66 {
    67 If (array! = Null %26amp;%26amp;Array.Length==NewSize) Return;
    68 If (array==Null) Array = New T[0];
    69 T[] NewArray = New T[newSize];
    70 Array.Copy(array, newArray, math.Min(array.Length, newArray.Length));
    71 Array = NewArray;
    72}
    73}
    74}

...

Design pattern without gibberish C# seven:Adapter




This     series the design mode that the article will introduce C# to everybody,This is the seventh article,Believe to be able to be helped somewhat to everybody.Gibberish does not say more,Continue to look.

   Intent

...

C# implements the program code of USB interface




C# implements the program code of USB interface.





Namespace ConsoleApplication1
{Class Program
{Static Void Main(string[] Args)
{
USB Usb;Usb = New UDisk();// inserts U dishUsb.OutputFile();// from U dish numerate fileUsb.InputFile();// past U dish keep a fileUsb.Dispose();// pulls out U dish
Console.WriteLine("");Usb = New MDisk();// inserts mobile hard diskUsb.OutputFile();// numerates from mobile hard disk fileUsb.InputFile();// keeps a file toward mobile hard diskUsb.Dispose();// pulls out mobile hard disk
Console.WriteLine("");Usb = New MP4();// inserts MP4Usb.OutputFile();// numerates from MP4 fileUsb.InputFile();// keeps a file toward MP4Usb.Dispose();// pulls out MP4

...

The expert talks to arrive from Web 2.0 Web 3.0



    is used when the enterprise that has nothing to do with the network in great quantities " 2 " come sale,Can see in recent yearsWeb 2.0Have a fever really.When network great change will from " By The User, for The User " trend " Of The User " ," digital age " bring two experts,Try to draw the outline of when Web 2.0 moves toward Web 3.0,A few concepts that must understand.

...

ASP.NET program is on guard SQL is spoon-fed the method of attack



   One, what is SQL spoon-fed attack?

    alleged SQL is spoon-fed attack,The inquiry string that is the input region that aggressor inserts SQL command to Web to express sheet or page request,The SQL that cheats a server to carry out ill will commands.In certain watch sheet,The content that the user inputs uses construction directly (perhaps affect) dynamic SQL commands,Or as the input parameter of memory process,Sheet of this kind of watch gets particularly easily SQL is spoon-fed attack.Common SQL is spoon-fed attack process kind be like:

...

With DIV layer the element bombs put oneself in another's position giving a window in ASP.NET1.0/2.0



    article Bilal Haidar will guide you how to use DIV element to found bomb the window put oneself in another's position that give, this kind is played go out to be able to include simple HTML element to also can include ASP.NET server to accuse namely, and the Window function that did not use a convention in realizing a process and function of ShowModalDialog / ShowModelessDialog (traditional we use Window.open, or such ShowModalDialog function will make play a window- - every day annotate)

I am in     to develop system of a window with ASP.NET1.1 technology recently, this window body includes the gather of a face plate that accuses a composition by three, this face plate uses indication system information. Can these accuse the hypothesis be a few fall simply draw circle, fall when the first after pulling casing to choose, next the second values that draw circle will show the result that is filtered by the first, same the third falls pull casing to will fall to play the option of casing and undertake changing indication according to the second.

This technology of body of     window is used to normally invite terminal client those personnel that do not know ASP.NET technique get better user to experience.

    uses these accusing when the decision when substitute is used, whether had you used Dropdownlist to perhaps have the Textbox that plays function of form giving a window to accuse?

    is good, we had had a very good solution: 蔈xtBox of 肨 of A Chinese-style unlined garment accuses and incident of OnClick of link up with will spark DIV bombs put oneself in another's position giving a window, include to use Listbox to control a cost that will choose data
One does not use system of any groovy Popup window or antiquated Dropdownlist will fulfil this function

    THE HTML WebForm

We had built     a simple WebForm, he included a few TextBox, each TextBox had added OnClick incident,Will bomb put oneself in another's position giving a window with code of a paragraph of Javascript,Code is as follows:


...
« 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 »