2nd commit (and test)

This commit is contained in:
Szymon Porwolik
2019-02-21 00:15:39 +01:00
parent fb7a14f07c
commit 7d18abe31b
6 changed files with 91 additions and 67 deletions

View File

@@ -1,59 +0,0 @@
namespace Perun_v1
{
partial class Form1
{
/// <summary>
/// Wymagana zmienna projektanta.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Wyczyść wszystkie używane zasoby.
/// </summary>
/// <param name="disposing">prawda, jeżeli zarządzane zasoby powinny zostać zlikwidowane; Fałsz w przeciwnym wypadku.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Kod generowany przez Projektanta formularzy systemu Windows
/// <summary>
/// Metoda wymagana do obsługi projektanta — nie należy modyfikować
/// jej zawartości w edytorze kodu.
/// </summary>
private void InitializeComponent()
{
this.listBox1 = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(12, 12);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(594, 550);
this.listBox1.TabIndex = 0;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(618, 567);
this.Controls.Add(this.listBox1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ListBox listBox1;
}
}

View File

@@ -46,16 +46,16 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="form_Main.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="form_Main.Designer.cs">
<DependentUpon>form_Main.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<EmbeddedResource Include="form_Main.resx">
<DependentUpon>form_Main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>

View File

@@ -16,7 +16,7 @@ namespace Perun_v1
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Application.Run(new form_Main());
}
}
}

73
Perun_v1/form_Main.Designer.cs generated Normal file
View File

@@ -0,0 +1,73 @@
namespace Perun_v1
{
partial class form_Main
{
/// <summary>
/// Wymagana zmienna projektanta.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Wyczyść wszystkie używane zasoby.
/// </summary>
/// <param name="disposing">prawda, jeżeli zarządzane zasoby powinny zostać zlikwidowane; Fałsz w przeciwnym wypadku.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Kod generowany przez Projektanta formularzy systemu Windows
/// <summary>
/// Metoda wymagana do obsługi projektanta — nie należy modyfikować
/// jej zawartości w edytorze kodu.
/// </summary>
private void InitializeComponent()
{
this.con_List_Received = new System.Windows.Forms.ListBox();
this.con_Button_DEBUG = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// con_List_Received
//
this.con_List_Received.FormattingEnabled = true;
this.con_List_Received.Location = new System.Drawing.Point(12, 12);
this.con_List_Received.Name = "con_List_Received";
this.con_List_Received.Size = new System.Drawing.Size(594, 550);
this.con_List_Received.TabIndex = 0;
//
// con_Button_DEBUG
//
this.con_Button_DEBUG.Location = new System.Drawing.Point(612, 21);
this.con_Button_DEBUG.Name = "con_Button_DEBUG";
this.con_Button_DEBUG.Size = new System.Drawing.Size(80, 48);
this.con_Button_DEBUG.TabIndex = 1;
this.con_Button_DEBUG.Text = "Debug";
this.con_Button_DEBUG.UseVisualStyleBackColor = true;
this.con_Button_DEBUG.Click += new System.EventHandler(this.con_Button_DEBUG_Click);
//
// form_Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(738, 567);
this.Controls.Add(this.con_Button_DEBUG);
this.Controls.Add(this.con_List_Received);
this.Name = "form_Main";
this.Text = "Perun for DCS World";
this.Load += new System.EventHandler(this.form_Main_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ListBox con_List_Received;
private System.Windows.Forms.Button con_Button_DEBUG;
}
}

View File

@@ -10,11 +10,21 @@ using System.Windows.Forms;
namespace Perun_v1
{
public partial class Form1 : Form
public partial class form_Main : Form
{
public Form1()
public form_Main()
{
InitializeComponent();
}
private void con_Button_DEBUG_Click(object sender, EventArgs e)
{
con_List_Received.Items.Add("test");
}
private void form_Main_Load(object sender, EventArgs e)
{
}
}
}