c# Visual Studio 2013
,
delphi xe7 Windows #209 2
,
, c# ( ).
Visual Studio 2013
File > New > c# Windows Forms Application
:
Text, StartPosition
Text = 'calculator';
StartPosition = CenterScreen;
Release
exe .
, : calculator,
,
, .
Toolbox > Common Controls
TextBox
Name = "calc_textBox1"
Text .
3
+, =, C
Name Text :
Name = "plus_button1"
Text = "+"
Name = "calc_button1"
Text = "="
Name = "clear_button1"
Text = "C"
[F7].
Form1.cs
Build > Build Solution,
exe ,
,
3
+, =, C
, . .
.
.
clear_button1
Design, ,
C.
Form1.cs
private void clear_button1_Click(object sender, EventArgs e)
{
}
calc_textBox1.Text = "0";
private void clear_button1_Click(object sender, EventArgs e)
{
calc_textBox1.Text = "0";
}
, exe.
, C
.
1 c# !
0.
, ,
.
.
public Form1()
InitializeComponent();
calc_textBox1.Text = "0";
public Form1()
{
InitializeComponent();
calc_textBox1.Text = "0";
}
calc_textBox1.TextAlign
Right
.
+
a = int.Parse(calc_textBox1.Text);
calc_textBox1.Clear();
calc_textBox1.Focus();
operation = opAdd;
private void plus_button1_Click(object sender, EventArgs e)
{
a = int.Parse(calc_textBox1.Text); // a
calc_textBox1.Clear(); // ( 2 )
calc_textBox1.Focus(); //
operation = opAdd; // -
}
a, operation, b
namespace calculator
{
public partial class MainForm1 : Form
{
public int a, b, operation;
public const int opAdd = 1; //
public const int opSub = 2; //
public const int opMul = 3;
public const int opDiv = 4;
public MainForm1()
=
private void calc_button1_Click(object sender, EventArgs e)
{
b = int.Parse(calc_textBox1.Text);
switch (operation)
{
case opAdd: {
int result = a + b; //
calc_textBox1.Text = result.ToString(); //
// . . Text
//
break;
}
}
}
, exe
+
=
-
, c#.
- -, x /
. . , ( x, *)
.
.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace calculator
{
public partial class MainForm1 : Form
{
public int a, b, operation;
public const int opAdd = 1;
public const int opSub = 2;
public const int opMul = 3;
public const int opDiv = 4;
public MainForm1()
{
InitializeComponent();
calc_textBox1.Text = "0";
}
private void clear_button1_Click(object sender, EventArgs e)
{
calc_textBox1.Text = "0";
}
private void save_a_operand_and_get_focus()
{
a = int.Parse(calc_textBox1.Text);
calc_textBox1.Clear();
calc_textBox1.Focus();
}
private void plus_button1_Click(object sender, EventArgs e)
{
save_a_operand_and_get_focus();
operation = opAdd;
}
private void calc_button1_Click(object sender, EventArgs e)
{
b = int.Parse(calc_textBox1.Text);
switch (operation)
{
case opAdd: {
int result = a + b;
calc_textBox1.Text = result.ToString();
break;
}
case opSub:
{
int result = a - b;
calc_textBox1.Text = result.ToString();
break;
}
case opMul:
{
int result = a * b;
calc_textBox1.Text = result.ToString();
break;
}
case opDiv:
{
int result = a / b;
calc_textBox1.Text = result.ToString();
break;
}
}
}
private void minus_button1_Click(object sender, EventArgs e)
{
save_a_operand_and_get_focus();
operation = opSub;
}
private void multiply_button1_Click(object sender, EventArgs e)
{
save_a_operand_and_get_focus();
operation = opMul;
}
private void division_button1_Click(object sender, EventArgs e)
{
save_a_operand_and_get_focus();
operation = opDiv;
}
}
}
, exe
, .
,
delphi xe7 Windows #209 2,
, c#
int result = a / b;
. . (a b) int.
, !
c#.
,
, delphi.
.
. .
delphi,
, , .
- ,
.
!!!
, delphi
delphi xe7 Windows #209 2
calculator c#.
zip .
: 24 Kb.
-
.
zip .
: 24 Kb.
, -
.
!!!
, ,
.
.
!!!
:
ria pc game 2 !
: 200 .
: +1
( ) !
: 400 .
: +2
( ) !
: 600 .
:
0
0
|
|
|
|
-, godot,
|
|
|
|
|
|
|
|
|
|
: dress - hordes 1 4
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
, , 2020 - ,
|
|
|
|
|
|
|
|
|
|
, , , .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(3), (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
,
|
anova
|
A Knots Story |
sabotage |
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, ,
|
|
|
|
|
|
|
, , cms,
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
, , ria xxl , fly snow 3d , . -
|
|
|
|
|
|
fle game engine -
|
|
|
|
|
|
- / megainformatic cms express files -
|
|
|
|
|
|
Flash, Flash - .
|
|
|
|
|
|
(multi lang), , . - (megainformatic cms social), megainformatic cms groupon, keywords gen + , .
megainformatic.ru/webjob/ -
- |
|
|
megainformatic.ru/webjob/
megainformatic.ru/webjob/ -
- |
|
|
|
|
|
,
megainformatic cms admin -
|
|
|
|
|
|
350 . |
5800 . |
3000 . |
500 . |
|
|
|
|
|
|
|
|
|
|
|
|
megainformatic cms free - Photoshop
,
Adobe Photoshop. ,
- GIMP, Corel Photo Paint .
|
|
|
|
|
|
2d 3d, , !
. ,
,
!!! ( , ! ). |
|
|
|
|
|
|
|
|
|
|
|
,
: -
350 . |
510 . |
fle game engine |
|
- , ,
, .
- - :
- |
|
|
|
|
|
|
|
|
|
|
|
, 3ds max, photoshop, c++,
directx, delphi php.
,
.
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Photoshop free,
delphi directx - , !,
mp3 - ,
megainformatic cms express -
php + my sql. |
|
|
|
|
|
|
|
|
|
|
|
,
, delphi directx 8.1 (
3d ), 3d studio max, -
Fruity Loops Studio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|