Author:admin

Date:2008-09-30T16:23:49.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@65 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
jfiat
2008-09-30 16:23:49 +00:00
parent 8b7fc644f4
commit 2450a58534
168 changed files with 215 additions and 262 deletions

View File

@@ -1,5 +1,6 @@
[[Property:title|ADO.NET Sample]]
[[Property:weight|0]]
[[Property:uuid|45d24893-63d0-c2a9-9f62-ead08ca4b901]]
This sample consist of a command line showing how to interact with a database.
The DataReader object is somewhat synonymous with a read-only/forward-only cursor over data. The DataReader API supports flat as well as hierarchical data. A DataReader object is returned after executing a command against a database. The format of the returned DataReader object is different from a recordset. For example, you might use the DataReader to show the results of a search list in a web page.

View File

@@ -1,8 +1,5 @@
[[Property:title|ADO .NET Samples]]
[[Property:weight|0]]
[[Property:uuid|b58f17b4-57b0-ffe9-3160-86d95512f900]]
* [[ADO.NET Sample|Ado]]
ADO .NET is the data access technology of Microsoft .NET.

View File

@@ -4,7 +4,7 @@
=The Calculator Sample=
This sample consists of a command line reverse Polish notation (RPN) calculator.
{{note| '''Note:''' A RPN calculator works slightly differently from standard calculators. It consists of a stack of numbers. Operations are applied to the two numbers on top of the stack. The result is then put on top of the stack so that it can be used in the next operation. This sample refers to the top of the stack as ''Accumulator''. }}
{{note|A RPN calculator works slightly differently from standard calculators. It consists of a stack of numbers. Operations are applied to the two numbers on top of the stack. The result is then put on top of the stack so that it can be used in the next operation. This sample refers to the top of the stack as ''Accumulator''. }}
==Compiling==
@@ -80,7 +80,7 @@ Next operation?
You may use the operation <code> 0 </code> to clear the stack at any time. You may use <code> q </code> to quit the program.
{{tip| '''Tip:''' You can use the command <code> ? </code> to display the list of available operations. }}
{{tip|You can use the command <code> ? </code> to display the list of available operations. }}
==Under the Hood==

View File

@@ -1,8 +1,5 @@
[[Property:title|Console Samples]]
[[Property:weight|1]]
[[Property:uuid|3f2c704c-9784-06a5-4cad-02ad58433b2c]]
* [[Calculator: console|Calculator]]
Console application samples.

View File

@@ -5,30 +5,3 @@ In this chapter you will find a series of examples that will permit to you to un
However, you should be familiar with Object-Oriented programming model. Almost all other examples can also be built for .NET if the dotnet target is choosen instead of classic.
==Console sample==
* [[Calculator: console|Calculator]]
==Threads Samples==
* [[Pools|Pools]]
* [[Timers|Timers]]
==ADO.NET sample==
* [[ADO.NET Sample|ADO.NET]]
==Windows Form samples==
The following samples are classified from the easiest to the most complex one. So, some notions are introduced in the few first samples and will not be explained again in the complex samples!
* [[Simple Hello world form sample|Hello world form]]
* [[Message Box|Message box]]
* [[Date Time Picker|Calendar and dates]]
* [[Progress bar sample|Progress bar]]
* [[Menus|Adding Menu to a Form]]
* [[MDI|Writing MDI Applications]]
* [[Tree view|Tree view]]
* [[Calculator: winform|Calculator]]
* [[GDI plus - text|Text (gdi plus)]]
* [[Simple data binding|Simple data binding]]

View File

@@ -1,9 +1,5 @@
[[Property:title|Threads Samples]]
[[Property:weight|2]]
[[Property:uuid|62e36a4c-0afd-e143-9a1f-98eab4022e6b]]
* [[Pools|Pools]]
* [[Timers|Timers]]
Samples using .NET threading technology.

View File

@@ -1,5 +1,6 @@
[[Property:title|Pools]]
[[Property:weight|0]]
[[Property:uuid|ace044b0-1fb7-22a0-6c18-880281ed3b6d]]
This sample demonstrates use of the <eiffel>THREAD_POOL</eiffel> (ThreadPool) class. The sample queues up an asynchronous method call that is executed by a thread from the thread pool managed by the Common Language Runtime. The method "does some work" and then sets an event indicating that the work has finished. The main thread waits on the event and then exits.
==Compiling==

View File

@@ -1,5 +1,6 @@
[[Property:title|Timers]]
[[Property:weight|1]]
[[Property:uuid|325ac6e6-9660-891c-2605-dbeb621649f0]]
This sample consist in a command line demonstrating the use of the <eiffel>TIMER</eiffel> (Timer) class to generate a periodic callback to a method. The sample creates a <eiffel>TIMER</eiffel> object and passes to it a delegate object. When the <eiffel>TIMER</eiffel> fires, the delegate is invoked, and a static method is called asynchronously by a worker thread in the thread pool.
==Compiling==

View File

@@ -1,5 +1,6 @@
[[Property:title|Calculator: winform]]
[[Property:weight|-8]]
[[Property:uuid|9d064b1c-e109-35e8-70d5-73feec59fca1]]
<div>
[[Image:calculator|Calculator]]
</div>

View File

@@ -25,7 +25,9 @@ After launching the application, you will see a window displayed with a similar
Clicking on the "Change font" button and a change font dialog box will appear. [[Image:change-font-dialog|change font dialog box]] .
Clicking on the "Change color" button and a dialog_box will appear. [[Image:dotnet-samples--date-time-picker-change-color-dlg|dialog box]] It will permit you to customize the color appearance of the calendar though a color dialog box [[Image:dotnet-samples--date-time-picker-change-color-dlg|color dialog box]] .
Clicking on the "Change color" button and a dialog_box will appear. [[Image:dotnet-samples--date-time-picker-change-color-dlg|dialog box]]
It will permit you to customize the color appearance of the calendar though a color dialog box [[Image:dotnet-samples--date-time-picker-change-color-dlg|color dialog box]] .
@@ -49,10 +51,3 @@ This sample contains the following classes:
This sample is translated from the example located in the QuickStart\winforms\samples\controlReference\dateTimePicker sub-directory of the .NET Framework SDK samples directory of Microsoft Visual Studio .NET.

View File

@@ -36,10 +36,3 @@ This sample contains the following class:
This sample is translated from the example located in the QuickStart\winforms\samples\gdiplus subdirectory of the .NET Framework SDK samples directory of Microsoft Visual Studio.NET.

View File

@@ -1,17 +1,5 @@
[[Property:title|Winform Samples]]
[[Property:weight|3]]
[[Property:uuid|24cbeb3c-ba2b-1fea-ccec-89600bbf3256]]
The following examples are classified from the easiest to the most complex one. So, some notions are introduced in the few first examples and will not be explained again in the complex examples!
==Getting started==
* [[Simple Hello world form sample|Hello world form]]
* [[Message Box|Message box]]
* [[Menus|Adding Menu to a Form]]
* [[MDI|Writing MDI Applications]]
==Building applications==
* [[Calculator: winform|Calculator]]
* [[GDI plus - text|Text (gdi plus)]]
The following examples are classified generally from the easiest to the most complex. So, some notions are introduced in the few first examples and will not be explained again in the more complex examples!

View File

@@ -1,5 +1,6 @@
[[Property:title|MDI]]
[[Property:weight|-9]]
[[Property:uuid|d1cb553c-8394-9f27-4d75-8d69f8582e49]]
<div>
[[Image:mdi|Hello world form]]
</div>

View File

@@ -1,5 +1,6 @@
[[Property:title|MDI Details]]
[[Property:weight|0]]
[[Property:uuid|f39b5ac5-64ae-781d-8d43-305954ae8d28]]
Multiple Document Interface (MDI) applications have a single, primary window (the parent window) that contains a set of windows within its client region (child windows). Each child window is a form that is constrained to appear only within the parent. Children typically share the menu bar, tool bar, and other parts of the parent's interface. Secondary windows like dialog boxes are not constrained to the parent window's client region.
==Creating an MDI Application==

View File

@@ -1,5 +1,6 @@
[[Property:title|Menus]]
[[Property:weight|-10]]
[[Property:uuid|5a32fed4-0b46-51f8-a6b6-fc3eac70a844]]
<div>
[[Image:menu-principal|Hello world form]]
</div>

View File

@@ -1,5 +1,6 @@
[[Property:title|Menu Details]]
[[Property:weight|0]]
[[Property:uuid|81ae03a0-387d-f776-17b9-f4a83c49b75f]]
Windows Forms supports menus and context menus. Main menus are displayed on a menu bar that is located immediately below the title bar of a form. The menu bar contains top-level menu items that are used to group related submenu items. For example, by clicking a '''File''' top-level menu item, you can display menu items that are related to file operations. Menu items typically appear as commands for your application (such as '''New''' and '''Open'''),but they can also appear as separator bars and submenu items. You can display a check mark next to a menu item to display the state of a command or a the state of a feature in your application. In Windows Forms, main menus are represented by the '''MainMenu''' control.
Context menus can be displayed for a specific control or area of your form. They are typically accessed by clicking the right mouse button. In Windows Forms, context menus are represented by the '''ContextMenu''' control.

View File

@@ -1,5 +1,6 @@
[[Property:title|Message Box]]
[[Property:weight|-11]]
[[Property:uuid|cbc37679-43b0-99b8-b8c7-1be8be49882e]]
<div>
[[Image:hello-world|Hello world form]] <br/>
[[Image:message-box|Hello world form]]

View File

@@ -39,10 +39,3 @@ This sample contains the following classes:
This sample is translated from the example located in the QuickStart\winforms\samples\controlReference\ProgressBar sub-directory of the .NET Framework SDK samples directory of Microsoft Visual Studio .NET.

View File

@@ -46,10 +46,3 @@ This sample contains the following class:
This sample is translated from the example located in the QuickStart\winforms\samples\dataBinding subdirectory of the .NET Framework SDK samples directory of Microsoft Visual Studio.NET.

View File

@@ -1,5 +1,6 @@
[[Property:title|Simple Hello world form sample]]
[[Property:weight|-12]]
[[Property:uuid|f4f924a5-20a2-403b-ee1d-a39c77fbb8fd]]
<div>
[[Image:simple-hello-world|Hello world form]]
</div>

View File

@@ -40,10 +40,3 @@ This sample contains the following classes:
This sample is translated from the example located in the QuickStart\winforms\samples\ControlReference\TreeView subdirectory of the .NET Framework SDK samples directory of Microsoft Visual Studio .NET.