/*
* Created by SharpDevelop.
* User: Peter Konow
* Date: 12.12.2018
* Time: 9:08
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Test_app_1
{
/// <summary>/// Description of MainForm./// </summary>public partial class MainForm : Form
{
public MainForm()
{
//// The InitializeComponent() call is required for Windows Forms designer support.//
InitializeComponent();
//// TODO: Add constructor code after the InitializeComponent() call.//
}
void Button1Click(object sender, EventArgs e)
{
}
}
}
问题:为什么一个按钮有一个函数,第二个按钮和复选框的函数在哪里?
发现这个代码。
/*
* Created by SharpDevelop.
* User: Peter Konow
* Date: 12.12.2018
* Time: 9:08
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
namespace Test_app_1
{
partial class MainForm
{
/// <summary>/// Designer variable used to keep track of non-visual components./// </summary>private System.ComponentModel.IContainer components = null;
/// <summary>/// Disposes resources used by the form./// </summary>/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>protectedoverridevoid Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>/// This method is required for Windows Forms designer support./// Do not change the method contents inside the source code editor. The Forms designer might/// not be able to load this method if it was changed manually./// </summary>privatevoid InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
// // button1// this.button1.Location = new System.Drawing.Point(25, 21);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(131, 76);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.Button1Click);
// // checkBox1// this.checkBox1.Location = new System.Drawing.Point(25, 146);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(104, 24);
this.checkBox1.TabIndex = 1;
this.checkBox1.Text = "checkBox1";
this.checkBox1.UseVisualStyleBackColor = true;
// // checkBox2// this.checkBox2.Location = new System.Drawing.Point(25, 176);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(104, 24);
this.checkBox2.TabIndex = 2;
this.checkBox2.Text = "checkBox2";
this.checkBox2.UseVisualStyleBackColor = true;
// // checkBox3// this.checkBox3.Location = new System.Drawing.Point(25, 207);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(104, 24);
this.checkBox3.TabIndex = 3;
this.checkBox3.Text = "checkBox3";
this.checkBox3.UseVisualStyleBackColor = true;
// // button2// this.button2.Location = new System.Drawing.Point(172, 21);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(127, 76);
this.button2.TabIndex = 4;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
// // MainForm// this.AutoScaleDimensions = new System.Drawing.SizeF(6 F, 13 F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(325, 261);
this.Controls.Add(this.button2);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.checkBox2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.button1);
this.Name = "MainForm";
this.Text = "Test app 1";
this.ResumeLayout(false);
}
private System.Windows.Forms.Button button2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
}
}
没有显示,但同时相当清楚地描述了他们的原则。这就是你所反对的,这就是他们所说的,"道路是错误的"。
此外,"错 "的不是作者,而是那些反对者。他们有像鸡一样的大脑,不能记住他们在哪里创造了什么物体,在哪里和谁指的是它们,阵列中的每个细胞意味着什么,他们可以从哪里改变,在哪里不...反对者感到愤慨是可以理解的。愚蠢的人没有训练他们的记忆力,使他们能够轻松地记住程序中的几千个对象和引用,而是削减自己的访问权限,定义一些区别,一些接口,一些多态函数......。他们自己折磨自己,就像在沙皇政权下一样,嗯......。
而且,"错误 "它只是不适合作者,也不适合那些反对者。他们有胆小的大脑,不能记住他们在哪里创造了什么对象,在哪里和谁提到他们,阵列中的每个单元意味着什么,他们可以从哪里改变,哪里不...反对者感到愤慨是可以理解的。愚蠢的人没有训练他们的记忆力,使他们能够轻松地记住程序中的几千个对象和引用,而是削减自己的访问权限,定义一些区别,一些接口,一些多态函数......。他们自己折磨自己,就像在沙皇政权下一样,嗯......。
就这样了。
这个话题发起人有吸引观众的天赋,然后在他的话题中安排了一个破绽,一夜之间设法记住谁从哪里得到了什么,讨论心理学,为他的健康而化妆和喝酒!
ZS: 祝贺你身体健康!祝你好运,身体健康,长命百岁!
通过不展示它,而是相当清楚地描述其原则。这些都是反对意见,它们被用来说 "这条路是错的"。
此外,"错 "的不是作者,而是那些反对者。他们有鸡的大脑,不能记住他们在哪里创造了什么物体,在哪里和谁指的是它们,阵列中的每个单元意味着什么,他们可以从哪里改变,哪里不...反对者感到愤慨是可以理解的。愚蠢的人没有训练他们的记忆力,使他们能够轻松地记住程序中的几千个对象和引用,而是削减自己的访问权限,定义一些区别,一些接口,一些多态函数......。他们自己折磨自己,就像在沙皇政权下一样,嗯......。
为了很好地背诵,你必须用你的母语编程。或者更好的是,用两种语言。然后,记忆就会百分之百地发挥作用。
这个简单的道理是无法理解的。陈规定型观念妨碍了工作。
而且由于规则较少,他们自己在程序中的构造也能更好地被记住。这就是为什么我发明了我自己的方法,其中的规则数量可以忽略不计。为了制作大量的。
就这样了。
这个话题发起人有吸引观众的天赋,然后在他的话题中安排了一个破绽,一夜之间设法记住了谁从哪里得到了什么,讨论心理学,化妆和喝酒的健康!"。
ZS: 祝贺你身体健康!祝你好运,身体健康,长命百岁!
我此刻正在下载和安装C#。
我想在实践中处理这个问题。
让我们看看这有多容易。
为了善于记忆,你需要用你的母语编程。或者更好的是,用两种语言。那么你的记忆就会百分之百地发挥作用。
这个简单的道理是无法理解的。陈规定型观念妨碍了工作。
你总是在谈论定型观念。让我们客观地思考一下。看,所有来自学校课桌的未来程序员大多在学习C++,并参加比赛。
所有针对学童和学生的世界规模的国际竞赛都是用C++、Java,我不知道Pascal或C#是否存在。但C++统治着,还不算WEB的工具。
大家对C++和OOP风格都很熟悉,但在程序员中,外汇程序员很少,处理外汇的人也很少,你怎么看?许多人甚至不知道什么是外汇,甚至是美国人。
在一千个程序员中,你可能找不到一个做过算法交易的程序员。
安装了C#。打开了一个项目。制作了一个表单,并在其中添加了两个按钮和三个复选框。
下面是编辑器中的代码。
问题:为什么一个按钮有一个函数,第二个按钮和复选框的函数在哪里?
发现这个代码。
以及如何使用它与MT5的相互关系?
就是说,我在一个表单上有5个控件。接下来我如何将它们连接到MT5?
以及如何利用这一点与MT5对接?
唉,我不能比我在这里写的更进一步了https://www.mql5.com/ru/forum/293630/page57#comment_9851502
但是,如果你知道Windows中的事件模型是如何工作的,并且有与编译器和表单设计器一起工作的经验,那么一切在哪里都是一样的。
ZS:这是我第三次看到Sharp,但我在Delphi有很好的经验,我没有看到任何区别,一切工作都完全一样,不工作的地方第一次就被Google了
唉,我不能比我在这里走得更远https://www.mql5.com/ru/forum/293630/page57#comment_9851502。
但是,如果你知道Windows中的事件模型是如何工作的,并且有与编译器和表单设计器一起工作的经验,那么一切在哪里都是一样的。
SZZ:这是我第三次看到Sharp,但我在Delphi上有很好的经验,我看不出有什么不同,一切工作都完全一样,不工作的地方第一次就被谷歌了
PS。在程序上,我是指从MT5。MT5程序中的用户应该改变表格中的复选框或按钮的状态。