Initial commit

This commit is contained in:
Egor 2021-06-28 02:13:29 +03:00
commit 4e292c480b
58 changed files with 2072 additions and 0 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto

Binary file not shown.

BIN
.vs/Project/v15/.suo Normal file

Binary file not shown.

View file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.vs/Project/v16/.suo Normal file

Binary file not shown.

6
App.config Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>

284
Form1.Designer.cs generated Normal file
View file

@ -0,0 +1,284 @@
namespace Project
{
partial class form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(form));
this.start = new System.Windows.Forms.Button();
this.pole1 = new System.Windows.Forms.Panel();
this.pole2 = new System.Windows.Forms.Panel();
this.lscore = new System.Windows.Forms.Label();
this.lshot = new System.Windows.Forms.Label();
this.status = new System.Windows.Forms.Label();
this.menu = new System.Windows.Forms.MenuStrip();
this.settings = new System.Windows.Forms.ToolStripMenuItem();
this.sound = new System.Windows.Forms.ToolStripMenuItem();
this.bcolor = new System.Windows.Forms.ToolStripMenuItem();
this.skyblue = new System.Windows.Forms.ToolStripMenuItem();
this.white = new System.Windows.Forms.ToolStripMenuItem();
this.black = new System.Windows.Forms.ToolStripMenuItem();
this.barv = new System.Windows.Forms.ToolStripMenuItem();
this.darkblue = new System.Windows.Forms.ToolStripMenuItem();
this.help = new System.Windows.Forms.ToolStripMenuItem();
this.rules = new System.Windows.Forms.ToolStripMenuItem();
this.aboutme = new System.Windows.Forms.ToolStripMenuItem();
this.res = new System.Windows.Forms.Button();
this.menu.SuspendLayout();
this.SuspendLayout();
//
// start
//
this.start.Font = new System.Drawing.Font("Impact", 15.75F);
this.start.Location = new System.Drawing.Point(345, 405);
this.start.Name = "start";
this.start.Size = new System.Drawing.Size(78, 31);
this.start.TabIndex = 53;
this.start.Text = "Старт";
this.start.UseVisualStyleBackColor = true;
this.start.Click += new System.EventHandler(this.start_Click);
//
// pole1
//
this.pole1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(199)))), ((int)(((byte)(255)))));
this.pole1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pole1.Location = new System.Drawing.Point(400, 79);
this.pole1.Name = "pole1";
this.pole1.Size = new System.Drawing.Size(300, 300);
this.pole1.TabIndex = 54;
//
// pole2
//
this.pole2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(199)))), ((int)(((byte)(255)))));
this.pole2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pole2.Location = new System.Drawing.Point(60, 79);
this.pole2.Name = "pole2";
this.pole2.Size = new System.Drawing.Size(300, 300);
this.pole2.TabIndex = 55;
//
// lscore
//
this.lscore.AutoSize = true;
this.lscore.Font = new System.Drawing.Font("Impact", 15.75F);
this.lscore.ForeColor = System.Drawing.Color.Navy;
this.lscore.Location = new System.Drawing.Point(625, 407);
this.lscore.Name = "lscore";
this.lscore.Size = new System.Drawing.Size(0, 26);
this.lscore.TabIndex = 56;
this.lscore.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lshot
//
this.lshot.AutoSize = true;
this.lshot.Font = new System.Drawing.Font("Impact", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.lshot.ForeColor = System.Drawing.Color.Navy;
this.lshot.Location = new System.Drawing.Point(55, 410);
this.lshot.Name = "lshot";
this.lshot.Size = new System.Drawing.Size(0, 26);
this.lshot.TabIndex = 57;
this.lshot.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// status
//
this.status.AutoSize = true;
this.status.Font = new System.Drawing.Font("Impact", 15.75F);
this.status.ForeColor = System.Drawing.Color.Navy;
this.status.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
this.status.Location = new System.Drawing.Point(188, 24);
this.status.Name = "status";
this.status.Size = new System.Drawing.Size(390, 26);
this.status.TabIndex = 58;
this.status.Text = "Нажмите кнопку \'Старт\' для начала игры";
this.status.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// menu
//
this.menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.settings,
this.help});
this.menu.Location = new System.Drawing.Point(0, 0);
this.menu.Name = "menu";
this.menu.Size = new System.Drawing.Size(800, 24);
this.menu.TabIndex = 59;
//
// settings
//
this.settings.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sound,
this.bcolor});
this.settings.Name = "settings";
this.settings.Size = new System.Drawing.Size(79, 20);
this.settings.Text = "Настройки";
//
// sound
//
this.sound.Checked = true;
this.sound.CheckOnClick = true;
this.sound.CheckState = System.Windows.Forms.CheckState.Checked;
this.sound.Name = "sound";
this.sound.Size = new System.Drawing.Size(132, 22);
this.sound.Text = "Звук";
this.sound.CheckedChanged += new System.EventHandler(this.sound_CheckedChange);
//
// bcolor
//
this.bcolor.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.skyblue,
this.white,
this.black,
this.barv,
this.darkblue});
this.bcolor.Name = "bcolor";
this.bcolor.Size = new System.Drawing.Size(132, 22);
this.bcolor.Text = "Цвет фона";
this.bcolor.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.bcolor_DropDownItemClicked);
//
// skyblue
//
this.skyblue.Checked = true;
this.skyblue.CheckOnClick = true;
this.skyblue.CheckState = System.Windows.Forms.CheckState.Checked;
this.skyblue.Name = "skyblue";
this.skyblue.Size = new System.Drawing.Size(173, 22);
this.skyblue.Text = "Небесно-голубой";
//
// white
//
this.white.CheckOnClick = true;
this.white.Name = "white";
this.white.Size = new System.Drawing.Size(173, 22);
this.white.Text = "Белый";
//
// black
//
this.black.CheckOnClick = true;
this.black.Name = "black";
this.black.Size = new System.Drawing.Size(173, 22);
this.black.Text = "Чёрный";
//
// barv
//
this.barv.CheckOnClick = true;
this.barv.Name = "barv";
this.barv.Size = new System.Drawing.Size(173, 22);
this.barv.Text = "Барвинок";
//
// darkblue
//
this.darkblue.CheckOnClick = true;
this.darkblue.Name = "darkblue";
this.darkblue.Size = new System.Drawing.Size(173, 22);
this.darkblue.Text = "Тёмно-синий";
//
// help
//
this.help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.rules,
this.aboutme});
this.help.Name = "help";
this.help.Size = new System.Drawing.Size(65, 20);
this.help.Text = "Справка";
//
// rules
//
this.rules.Name = "rules";
this.rules.Size = new System.Drawing.Size(180, 22);
this.rules.Text = "Правила";
this.rules.Click += new System.EventHandler(this.rules_Click);
//
// aboutme
//
this.aboutme.Name = "aboutme";
this.aboutme.Size = new System.Drawing.Size(180, 22);
this.aboutme.Text = "Об авторе";
this.aboutme.Click += new System.EventHandler(this.aboutme_Click);
//
// res
//
this.res.Enabled = false;
this.res.Font = new System.Drawing.Font("Impact", 15.75F);
this.res.Location = new System.Drawing.Point(336, 405);
this.res.Name = "res";
this.res.Size = new System.Drawing.Size(97, 33);
this.res.TabIndex = 60;
this.res.Text = "Сдаться";
this.res.UseVisualStyleBackColor = true;
this.res.Visible = false;
this.res.Click += new System.EventHandler(this.res_Click);
//
// form
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DeepSkyBlue;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.res);
this.Controls.Add(this.status);
this.Controls.Add(this.lshot);
this.Controls.Add(this.lscore);
this.Controls.Add(this.pole2);
this.Controls.Add(this.pole1);
this.Controls.Add(this.start);
this.Controls.Add(this.menu);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menu;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "form";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Морской бой";
this.Load += new System.EventHandler(this.Form1_Load);
this.menu.ResumeLayout(false);
this.menu.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button start;
private System.Windows.Forms.Panel pole1;
private System.Windows.Forms.Panel pole2;
private System.Windows.Forms.Label lscore;
private System.Windows.Forms.Label lshot;
private System.Windows.Forms.Label status;
private System.Windows.Forms.MenuStrip menu;
private System.Windows.Forms.ToolStripMenuItem settings;
private System.Windows.Forms.ToolStripMenuItem sound;
private System.Windows.Forms.ToolStripMenuItem help;
private System.Windows.Forms.ToolStripMenuItem bcolor;
private System.Windows.Forms.ToolStripMenuItem skyblue;
private System.Windows.Forms.ToolStripMenuItem white;
private System.Windows.Forms.ToolStripMenuItem black;
private System.Windows.Forms.ToolStripMenuItem barv;
private System.Windows.Forms.ToolStripMenuItem darkblue;
private System.Windows.Forms.ToolStripMenuItem rules;
private System.Windows.Forms.ToolStripMenuItem aboutme;
private System.Windows.Forms.Button res;
}
}

373
Form1.cs Normal file
View file

@ -0,0 +1,373 @@
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;
using System.Media;
namespace Project
{
public partial class form : Form
{
public form()
{
InitializeComponent();
}
int s, score, scorev, shot, kln, q;
int sd = 1;
Random myRnd = new Random();
SoundPlayer popal = new SoundPlayer(Properties.Resources.explosion);
SoundPlayer promah = new SoundPlayer(Properties.Resources.mimo);
//объявляю все переменные
private void Form1_Load(object sender, EventArgs e)
{
pole2.Enabled = false;
}
private void klv_Click(object sender, EventArgs e)
{
PictureBox klv = (PictureBox)sender;
//проверка на то куда мы стреляем
if (klv.BackgroundImage == null)
{
status.Text = "Идёт игра";
shot++;
lshot.Text = "Выстрелов: " + Convert.ToInt32(shot);
//если в ячейке был корабль то засчитывается очко и он становится подбитым
if (Convert.ToInt32(klv.Tag) == 2)
{
klv.BackgroundImage = Properties.Resources.popadanie;
score++;
klv.Tag = 3;
//воспроизведение звука если он включен
if (sd == 1)
{
popal.Play();
}
}
//если корабля не было то появляется крестик
else
{
klv.BackgroundImage = Properties.Resources.krest;
//воспроизведение звука
if (sd==1)
{
promah.Play();
}
}
//если мы достигаем 10 очков то игра завершается
if (score == 10)
{
pole2.Enabled = false;
start.Enabled = true;
status.Text = "Игра окончена! Вы победили!\nНажмите кнопку 'Старт' для повторной игры";
}
else
{
//компьютер выбирает новую ячейку отличную от предыдущих
do
{
kln = myRnd.Next(0, 99);
}
while (Convert.ToInt32(pole1.Controls[kln].Tag) == 3 || Convert.ToInt32(pole1.Controls[kln].Tag) == 1);
//если там был корабль то он становится подбитым и дается очко компьютеру
if (Convert.ToInt32(pole1.Controls[kln].Tag) == 2)
{
pole1.Controls[kln].BackgroundImage = Properties.Resources.popadanie;
pole1.Controls[kln].Tag = 3;
scorev++;
}
//если там ничего не было то ставится крестик
if (Convert.ToInt32(pole1.Controls[kln].Tag) == 0)
{
pole1.Controls[kln].BackgroundImage = Properties.Resources.krest;
pole1.Controls[kln].Tag = 1;
}
//если компьютер достигает 10 очков то игра завершается
if (scorev == 10)
{
L();
res.Visible = false;
res.Enabled = false;
start.Enabled = true;
start.Visible = true;
}
}
}
//объявление счета
lscore.Text = "Счет: " + Convert.ToInt32(scorev) + ":" + Convert.ToInt32(score);
}
private void kl_Click(object sender, EventArgs e)
{
PictureBox kl = (PictureBox)sender;
s++;
//если количество поставленных конраблей 10 то игра начинается
if (s == 10)
{
status.Text = "Игра началась! Уничтожьте все корабли противника";
pole1.Enabled = false;
pole2.Enabled = true;
res.Visible = true;
res.Enabled = true;
lshot.Text = "Выстрелов: " + Convert.ToInt32(shot);
lscore.Text = "Счет: " + Convert.ToInt32(scorev) + ":" + Convert.ToInt32(score);
}
kl.BackgroundImage = Properties.Resources.ship;
kl.Tag = 2;
kl.Enabled = false;
}
private void start_Click(object sender, EventArgs e)
{
//обнуление всех переменных и подготовка к началу новой игры
start.Enabled = false;
start.Visible = false;
status.Text = "Расставьте 10 кораблей по вашему полю";
lscore.Text = null;
lshot.Text = null;
pole1.Enabled = true;
int p, k, i, x, y, t;
t = 0;
x = 0;
y = 0;
p = 1;
Random myRnd1 = new Random();
List<int> shipv = new List<int>();
shipv.Clear();
pole1.Controls.Clear();
pole2.Controls.Clear();
s = 0;
score = 0;
scorev = 0;
shot = 0;
kln = 0;
//компьютер выбирает 10 не повторяющихся ячеек для кораблей
for (i = 1; i < 11; i++)
{
do
{
t = myRnd1.Next(1, 100);
}
while (shipv.Contains(t) == true);
shipv.Add(t);
}
for (k = 0; k < 10; k++)
{
//создание ячеек нашего поля
for (i = 1; i < 11; i++)
{
PictureBox kl = new PictureBox();
kl.Click += new System.EventHandler(this.kl_Click);
kl.MouseEnter += new System.EventHandler(this.kl_MouseEnter);
kl.MouseLeave += new System.EventHandler(this.kl_MouseLeave);
kl.SizeMode = PictureBoxSizeMode.StretchImage;
kl.BackColor = Color.FromArgb(127, 199, 255);
kl.Width = 30;
kl.Height = 30;
kl.Location = new Point(x, y);
kl.BorderStyle = BorderStyle.FixedSingle;
pole1.Controls.Add(kl);
kl.Name = "kl" + p;
x += 30;
p++;
}
y += 30;
x = 0;
}
y = 0;
p = 1;
for (k = 0; k < 10; k++)
{
//создание ячеек поля врага
for (i = 1; i < 11; i++)
{
PictureBox klv = new PictureBox();
klv.Click += new System.EventHandler(this.klv_Click);
klv.MouseEnter += new System.EventHandler(this.klv_MouseEnter);
klv.MouseLeave += new System.EventHandler(this.klv_MouseLeave);
//если номер который выбрал компьютер совпадает с номером ячейки то в этой ячейке появится корабль
if (shipv.ElementAt(0) == p || shipv.ElementAt(1) == p || shipv.ElementAt(2) == p || shipv.ElementAt(3) == p || shipv.ElementAt(4) == p || shipv.ElementAt(5) == p || shipv.ElementAt(6) == p || shipv.ElementAt(7) == p || shipv.ElementAt(8) == p || shipv.ElementAt(9) == p)
{
klv.Tag = 2;
}
klv.SizeMode = PictureBoxSizeMode.StretchImage;
klv.BackColor = Color.FromArgb(127, 199, 255);
klv.Width = 30;
klv.Height = 30;
klv.Location = new Point(x, y);
klv.BorderStyle = BorderStyle.FixedSingle;
pole2.Controls.Add(klv);
klv.Name = "klv" + p;
x += 30;
p++;
}
y += 30;
x = 0;
}
y = 0;
p = 1;
start.Enabled = false;
}
private void kl_MouseEnter(object sender, EventArgs e)
{
PictureBox kl = (PictureBox)sender;
//при ведении мышки над вашим полем появляется корабль с уменьшенной прозрачностью
if (s != 10)
{
kl.BackgroundImage = Properties.Resources.ship2;
}
}
private void res_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Вы уверены, что хотите сдаться?", "Сдаться", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
//завершение игры и показ всех кораблей противника
L();
for (q = 0; q < 100; q++)
{
if (Convert.ToInt32(pole1.Controls[q].Tag) == 2)
{
pole1.Controls[q].BackgroundImage = Properties.Resources.popadanie;
}
}
//воспроизведение звук
if (sd == 1)
{
popal.Play();
}
res.Visible = false;
res.Enabled = false;
start.Enabled = true;
start.Visible = true;
}
}
private void kl_MouseLeave(object sender, EventArgs e)
{
PictureBox kl = (PictureBox)sender;
//когда мышь покидает ячейку то полупрозрачный корабль исчезает
if (Convert.ToInt32(kl.Tag) != 2)
{
kl.BackgroundImage = null;
}
}
private void rules_Click(object sender, EventArgs e)
{
//перенос на форму с правилами
fhelp myFrm = new fhelp();
myFrm.Show();
this.Hide();
}
private void aboutme_Click(object sender, EventArgs e)
{
//перенос на форму с информацией об авторе
fme myFrm3 = new fme();
this.Hide();
myFrm3.Show();
}
private void klv_MouseEnter(object sender, EventArgs e)
{
//появление прицела при наведении на поле противника
PictureBox klv = (PictureBox)sender;
klv.Image = Properties.Resources.aim;
}
private void klv_MouseLeave(object sender, EventArgs e)
{
//удаление прицела из ячейки
PictureBox klv = (PictureBox)sender;
klv.Image = null;
}
private void sound_CheckedChange(object sender, EventArgs e)
{
//включение и выключение звука
if (sound.Checked==true)
{
sd = 1;
}
else
{
sd = 0;
}
}
private void bcolor_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
//смена цвета фона и цвета шрифта
if (skyblue.Selected)
{
black.Checked = false;
white.Checked = false;
barv.Checked = false;
darkblue.Checked = false;
this.BackColor = Color.FromArgb(0, 191, 255);
lshot.ForeColor = Color.FromArgb(0, 0, 128);
status.ForeColor = Color.FromArgb(0, 0, 128);
lscore.ForeColor = Color.FromArgb(0, 0, 128);
}
if (black.Selected)
{
skyblue.Checked = false;
white.Checked = false;
barv.Checked = false;
darkblue.Checked = false;
this.BackColor = Color.FromArgb(0, 0, 0);
lshot.ForeColor = Color.FromArgb(255, 255, 255);
status.ForeColor = Color.FromArgb(255, 255, 255);
lscore.ForeColor = Color.FromArgb(255, 255, 255);
}
if (white.Selected)
{
black.Checked = false;
skyblue.Checked = false;
barv.Checked = false;
darkblue.Checked = false;
this.BackColor = Color.FromArgb(255, 255, 255);
lshot.ForeColor = Color.FromArgb(0, 0, 0);
status.ForeColor = Color.FromArgb(0, 0, 0);
lscore.ForeColor = Color.FromArgb(0, 0, 0);
}
if (barv.Selected)
{
black.Checked = false;
white.Checked = false;
skyblue.Checked = false;
darkblue.Checked = false;
this.BackColor = Color.FromArgb(204, 204, 255);
lshot.ForeColor = Color.FromArgb(93, 118, 203);
status.ForeColor = Color.FromArgb(93, 118, 203);
lscore.ForeColor = Color.FromArgb(93, 118, 203);
}
if (darkblue.Selected)
{
black.Checked = false;
white.Checked = false;
barv.Checked = false;
skyblue.Checked = false;
this.BackColor = Color.FromArgb(0, 0, 128);
lshot.ForeColor = Color.FromArgb(0, 191, 255);
status.ForeColor = Color.FromArgb(0, 191, 255);
lscore.ForeColor = Color.FromArgb(0, 191, 255);
}
}
private void L()
{
//кусочек повторяющегося кода записанный в виде метода
for (q = 0; q < 100; q++)
{
if (Convert.ToInt32(pole2.Controls[q].Tag) == 2)
{
pole2.Controls[q].BackgroundImage = Properties.Resources.ship;
}
}
pole2.Enabled = false;
start.Enabled = true;
status.Text = "Игра окончена! Победил компьютер...\nНажмите кнопку 'Старт' для повторной игры";
}
}
}

149
Form1.resx Normal file
View file

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
AAAA//8A/wAAAP8A/wD//wAA////AAAREREREREREREREREREQABEREREREREREREREREREQERERERER
ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER/x//H/8f/x/xERERERER
H////////////xERERERER/////////////xEREREREf/////////////xERERERERERERERERERERER
ERERH//////////x//////ERER//////////8f/////xERER//////////H/////ERERER/////////x
/////xERERER////////8f////ERERERER////////H////xERERERER///////x////EREREREREf//
////8f///xEREREREREf//////H///EREREREREREf/////x//8REREREREREREf////8f//ERERERER
EREREf////H/8REREREREREREREf///x//ERERERERERERERH///8f8RERERERERERERERH///H/ERER
ERERERERERERH//x8RERERERERERERERERH/8RERERERERERERERERERH/ERERERERERERERERERERHx
EREREREREREREREREREREREREREREQERERERERERERERERERERAAEREREREREREREREREREAwAAAA4AA
AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAcAA
AAMoAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAEREREREREQERERERER
EREREf////EREREf/////xEREREREREREREf////8f//ERH////x//ERER////H/8REREf//8f8RERER
H//x/xERERER//HxEREREREf8fERERERERHxEREREREREREREREREREREREREQEREREREREQgAEAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAEAAA==
</value>
</data>
</root>

188
Form2.Designer.cs generated Normal file
View file

@ -0,0 +1,188 @@
namespace Project
{
partial class fhelp
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fhelp));
this.phelp = new System.Windows.Forms.PictureBox();
this.lhelp = new System.Windows.Forms.Label();
this.back = new System.Windows.Forms.Button();
this.next = new System.Windows.Forms.Button();
this.elhelp = new System.Windows.Forms.Label();
this.yhelp = new System.Windows.Forms.Label();
this.hl1 = new System.Windows.Forms.Label();
this.hl2 = new System.Windows.Forms.Label();
this.hl3 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.phelp)).BeginInit();
this.SuspendLayout();
//
// phelp
//
this.phelp.Image = global::Project.Properties.Resources.help1;
this.phelp.Location = new System.Drawing.Point(55, 159);
this.phelp.Name = "phelp";
this.phelp.Size = new System.Drawing.Size(700, 333);
this.phelp.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.phelp.TabIndex = 0;
this.phelp.TabStop = false;
//
// lhelp
//
this.lhelp.AutoSize = true;
this.lhelp.Font = new System.Drawing.Font("Impact", 15.75F);
this.lhelp.ForeColor = System.Drawing.Color.Navy;
this.lhelp.Location = new System.Drawing.Point(114, 48);
this.lhelp.Name = "lhelp";
this.lhelp.Size = new System.Drawing.Size(526, 78);
this.lhelp.TabIndex = 1;
this.lhelp.Text = "Сразу же после начала игры вам требуется расставить\r\nкорабли на вашем поле. Делае" +
"тся это нажатием левой\r\nкнопки мыши по ячейке вашего поля\r\n";
this.lhelp.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// back
//
this.back.Font = new System.Drawing.Font("Impact", 15.75F);
this.back.Location = new System.Drawing.Point(12, 563);
this.back.Name = "back";
this.back.Size = new System.Drawing.Size(79, 36);
this.back.TabIndex = 2;
this.back.Text = "Назад";
this.back.UseVisualStyleBackColor = true;
this.back.Click += new System.EventHandler(this.back_Click);
//
// next
//
this.next.Font = new System.Drawing.Font("Impact", 15.75F);
this.next.Location = new System.Drawing.Point(350, 541);
this.next.Name = "next";
this.next.Size = new System.Drawing.Size(124, 58);
this.next.TabIndex = 3;
this.next.Text = "Далее";
this.next.UseVisualStyleBackColor = true;
this.next.Click += new System.EventHandler(this.next_Click);
//
// elhelp
//
this.elhelp.AutoSize = true;
this.elhelp.Font = new System.Drawing.Font("Impact", 15.75F);
this.elhelp.ForeColor = System.Drawing.Color.Navy;
this.elhelp.Location = new System.Drawing.Point(153, 507);
this.elhelp.Name = "elhelp";
this.elhelp.Size = new System.Drawing.Size(172, 26);
this.elhelp.TabIndex = 4;
this.elhelp.Text = "Поле противника";
this.elhelp.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// yhelp
//
this.yhelp.AutoSize = true;
this.yhelp.Font = new System.Drawing.Font("Impact", 15.75F);
this.yhelp.ForeColor = System.Drawing.Color.Navy;
this.yhelp.Location = new System.Drawing.Point(528, 507);
this.yhelp.Name = "yhelp";
this.yhelp.Size = new System.Drawing.Size(112, 26);
this.yhelp.TabIndex = 5;
this.yhelp.Text = "Ваше поле";
//
// hl1
//
this.hl1.AutoSize = true;
this.hl1.BackColor = System.Drawing.Color.DeepSkyBlue;
this.hl1.Font = new System.Drawing.Font("Impact", 28F);
this.hl1.ForeColor = System.Drawing.Color.Navy;
this.hl1.Location = new System.Drawing.Point(481, 195);
this.hl1.Name = "hl1";
this.hl1.Size = new System.Drawing.Size(159, 46);
this.hl1.TabIndex = 6;
this.hl1.Text = "Корабль";
this.hl1.Visible = false;
//
// hl2
//
this.hl2.AutoSize = true;
this.hl2.Font = new System.Drawing.Font("Impact", 28F);
this.hl2.ForeColor = System.Drawing.Color.Navy;
this.hl2.Location = new System.Drawing.Point(481, 295);
this.hl2.Name = "hl2";
this.hl2.Size = new System.Drawing.Size(141, 46);
this.hl2.TabIndex = 7;
this.hl2.Text = "Промах";
this.hl2.Visible = false;
//
// hl3
//
this.hl3.AutoSize = true;
this.hl3.BackColor = System.Drawing.Color.DeepSkyBlue;
this.hl3.Font = new System.Drawing.Font("Impact", 28F);
this.hl3.ForeColor = System.Drawing.Color.Navy;
this.hl3.Location = new System.Drawing.Point(481, 405);
this.hl3.Name = "hl3";
this.hl3.Size = new System.Drawing.Size(202, 46);
this.hl3.TabIndex = 8;
this.hl3.Text = "Попадание";
this.hl3.Visible = false;
//
// fhelp
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DeepSkyBlue;
this.ClientSize = new System.Drawing.Size(828, 611);
this.Controls.Add(this.hl3);
this.Controls.Add(this.hl2);
this.Controls.Add(this.hl1);
this.Controls.Add(this.yhelp);
this.Controls.Add(this.elhelp);
this.Controls.Add(this.next);
this.Controls.Add(this.back);
this.Controls.Add(this.lhelp);
this.Controls.Add(this.phelp);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "fhelp";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Правила";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.fhelp_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.phelp)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox phelp;
private System.Windows.Forms.Label lhelp;
private System.Windows.Forms.Button back;
private System.Windows.Forms.Button next;
private System.Windows.Forms.Label elhelp;
private System.Windows.Forms.Label yhelp;
private System.Windows.Forms.Label hl1;
private System.Windows.Forms.Label hl2;
private System.Windows.Forms.Label hl3;
}
}

64
Form2.cs Normal file
View file

@ -0,0 +1,64 @@
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 Project
{
public partial class fhelp : Form
{
public fhelp()
{
InitializeComponent();
}
int i = 0;
private void back_Click(object sender, EventArgs e)
{
//закрытие формы с правилами и возвращение на первоначальную форму
form myFrm2 = new form();
myFrm2.Show();
this.Hide();
}
private void next_Click(object sender, EventArgs e)
{
//смена событий при нажатии на кнопку после определенного кол-во нажатий
if (i == 0)
{
phelp.Image = Properties.Resources.help2;
lhelp.Text = "Компьютер случайным образом расставляет корабли по своему полю\nЦель игры: уничтожить все корабли противника\nНажатием левой кнопки мыши вы можете подбить вражеский корабль";
}
if (i == 1)
{
phelp.Image = Properties.Resources.help3;
lhelp.Text = "Корабль обозначается небольшой желто-оранжевой точкой на поле\rВ случае промаха на месте клика появится красный крестик\rВ случае попадания по кораблю появится красная звездочка\rПобеждает тот, кто первее уничтожит все вражеские корабли";
next.Text = "Назад";
back.Visible = false;
back.Enabled = false;
elhelp.Text = null;
yhelp.Text = null;
hl1.Visible = true;
hl2.Visible = true;
hl3.Visible = true;
}
if (i == 2)
{
//закрытие формы с правилами и возвращение на первоначальную форму
form myFrm2 = new form();
this.Close();
myFrm2.Show();
}
i++;
}
private void fhelp_FormClosing(object sender, FormClosingEventArgs e)
{
Application.Exit();
}
}
}

143
Form2.resx Normal file
View file

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
AAAA//8A/wAAAP8A/wD//wAA////AAAREREREREREREREREREQABEREREREREREREREREREQERERERER
ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER/x//H/8f/x/xERERERER
H////////////xERERERER/////////////xEREREREf/////////////xERERERERERERERERERERER
ERERH//////////x//////ERER//////////8f/////xERER//////////H/////ERERER/////////x
/////xERERER////////8f////ERERERER////////H////xERERERER///////x////EREREREREf//
////8f///xEREREREREf//////H///EREREREREREf/////x//8REREREREREREf////8f//ERERERER
EREREf////H/8REREREREREREREf///x//ERERERERERERERH///8f8RERERERERERERERH///H/ERER
ERERERERERERH//x8RERERERERERERERERH/8RERERERERERERERERERH/ERERERERERERERERERERHx
EREREREREREREREREREREREREREREQERERERERERERERERERERAAEREREREREREREREREREAwAAAA4AA
AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAcAA
AAMoAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAEREREREREQERERERER
EREREf////EREREf/////xEREREREREREREf////8f//ERH////x//ERER////H/8REREf//8f8RERER
H//x/xERERER//HxEREREREf8fERERERERHxEREREREREREREREREREREREREQEREREREREQgAEAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAEAAA==
</value>
</data>
</root>

82
Form3.Designer.cs generated Normal file
View file

@ -0,0 +1,82 @@
namespace Project
{
partial class fme
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fme));
this.about = new System.Windows.Forms.Label();
this.backme = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// about
//
this.about.AutoSize = true;
this.about.Font = new System.Drawing.Font("Impact", 16F);
this.about.ForeColor = System.Drawing.Color.Navy;
this.about.Location = new System.Drawing.Point(23, 9);
this.about.Name = "about";
this.about.Size = new System.Drawing.Size(305, 189);
this.about.TabIndex = 0;
this.about.Text = "Код программы \"Морской бой\"\r\nнаписал ученик k0224 группы\r\nКапралов Егор\r\n\r\nПрогра" +
"мма написана для\r\nзащиты моего проекта\r\nпо программированию на C#\r\n";
this.about.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// backme
//
this.backme.Font = new System.Drawing.Font("Impact", 16F);
this.backme.Location = new System.Drawing.Point(128, 209);
this.backme.Name = "backme";
this.backme.Size = new System.Drawing.Size(88, 37);
this.backme.TabIndex = 1;
this.backme.Text = "Назад";
this.backme.UseVisualStyleBackColor = true;
this.backme.Click += new System.EventHandler(this.backme_Click);
//
// fme
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.DeepSkyBlue;
this.ClientSize = new System.Drawing.Size(350, 258);
this.Controls.Add(this.backme);
this.Controls.Add(this.about);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "fme";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Об авторе";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label about;
private System.Windows.Forms.Button backme;
}
}

28
Form3.cs Normal file
View file

@ -0,0 +1,28 @@
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 Project
{
public partial class fme : Form
{
public fme()
{
InitializeComponent();
}
private void backme_Click(object sender, EventArgs e)
{
//закрытие формы с информацией обо мне и возвращение к исходной форме
form myFrm2 = new form();
this.Close();
myFrm2.Show();
}
}
}

143
Form3.resx Normal file
View file

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
AAAA//8A/wAAAP8A/wD//wAA////AAAREREREREREREREREREQABEREREREREREREREREREQERERERER
ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER/x//H/8f/x/xERERERER
H////////////xERERERER/////////////xEREREREf/////////////xERERERERERERERERERERER
ERERH//////////x//////ERER//////////8f/////xERER//////////H/////ERERER/////////x
/////xERERER////////8f////ERERERER////////H////xERERERER///////x////EREREREREf//
////8f///xEREREREREf//////H///EREREREREREf/////x//8REREREREREREf////8f//ERERERER
EREREf////H/8REREREREREREREf///x//ERERERERERERERH///8f8RERERERERERERERH///H/ERER
ERERERERERERH//x8RERERERERERERERERH/8RERERERERERERERERERH/ERERERERERERERERERERHx
EREREREREREREREREREREREREREREQERERERERERERERERERERAAEREREREREREREREREREAwAAAA4AA
AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAcAA
AAMoAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
AACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAEREREREREQERERERER
EREREf////EREREf/////xEREREREREREREf////8f//ERH////x//ERER////H/8REREf//8f8RERER
H//x/xERERER//HxEREREREf8fERERERERHxEREREREREREREREREREREREREQEREREREREQgAEAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAEAAA==
</value>
</data>
</root>

22
Program.cs Normal file
View file

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Project
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new form());
}
}
}

123
Project.csproj Normal file
View file

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Project</RootNamespace>
<AssemblyName>Project</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Form3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form3.Designer.cs">
<DependentUpon>Form3.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\Resources\krest.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\Resources\popadanie.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\Resources\ship.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\Resources\50ship.gif" />
<None Include="Properties\Resources\aim.gif" />
<Content Include="Properties\Resources\BULLSEYE.ICO" />
<Content Include="Properties\Resources\explosion.wav" />
<None Include="Properties\Resources\help1.gif" />
<None Include="Properties\Resources\help2.gif" />
<None Include="Properties\Resources\help3.gif" />
<Content Include="Properties\Resources\mimo.wav" />
<Content Include="Properties\Resources\MISC32.ICO" />
<Content Include="Properties\Resources\ship2.gif" />
<None Include="Resources\bullseye.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

25
Project.sln Normal file
View file

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2047
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project", "Project.csproj", "{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}.Release|Any CPU.ActiveCfg = Release|Any CPU
{80FCFAF9-7265-4BE7-9FCA-4FDE2A8C3991}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4066F511-E9CB-4333-AFBF-A79A75960CB2}
EndGlobalSection
EndGlobal

View file

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Project")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Project")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("80fcfaf9-7265-4be7-9fca-4fde2a8c3991")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

181
Properties/Resources.Designer.cs generated Normal file
View file

@ -0,0 +1,181 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Project.Properties {
using System;
/// <summary>
/// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
/// </summary>
// Этот класс создан автоматически классом StronglyTypedResourceBuilder
// с помощью такого средства, как ResGen или Visual Studio.
// Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
// с параметром /str или перестройте свой проект VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Project.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Перезаписывает свойство CurrentUICulture текущего потока для всех
/// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap aim {
get {
object obj = ResourceManager.GetObject("aim", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Icon, аналогичного (Значок).
/// </summary>
internal static System.Drawing.Icon BULLSEYE {
get {
object obj = ResourceManager.GetObject("BULLSEYE", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.IO.UnmanagedMemoryStream, аналогичного System.IO.MemoryStream.
/// </summary>
internal static System.IO.UnmanagedMemoryStream explosion {
get {
return ResourceManager.GetStream("explosion", resourceCulture);
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap help1 {
get {
object obj = ResourceManager.GetObject("help1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap help2 {
get {
object obj = ResourceManager.GetObject("help2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap help3 {
get {
object obj = ResourceManager.GetObject("help3", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap krest {
get {
object obj = ResourceManager.GetObject("krest", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.IO.UnmanagedMemoryStream, аналогичного System.IO.MemoryStream.
/// </summary>
internal static System.IO.UnmanagedMemoryStream mimo {
get {
return ResourceManager.GetStream("mimo", resourceCulture);
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Icon, аналогичного (Значок).
/// </summary>
internal static System.Drawing.Icon MISC32 {
get {
object obj = ResourceManager.GetObject("MISC32", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap popadanie {
get {
object obj = ResourceManager.GetObject("popadanie", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ship {
get {
object obj = ResourceManager.GetObject("ship", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ship2 {
get {
object obj = ResourceManager.GetObject("ship2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

157
Properties/Resources.resx Normal file
View file

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="BULLSEYE" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\BULLSEYE.ICO;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="explosion" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\explosion.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="krest" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\krest.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="mimo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\mimo.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="MISC32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\MISC32.ICO;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="popadanie" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\popadanie.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ship" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\ship.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="aim" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\aim.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ship2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\50ship.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\help1.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\help2.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Resources\help3.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

30
Properties/Settings.Designer.cs generated Normal file
View file

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Project.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View file

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

BIN
bin/Debug/Project.exe Normal file

Binary file not shown.

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>

BIN
bin/Debug/Project.pdb Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
36905cf4e3297aac64731188c0690052702a5fe2

View file

@ -0,0 +1,22 @@
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\bin\Debug\Project.exe.config
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\bin\Debug\Project.exe
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\bin\Debug\Project.pdb
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.csprojAssemblyReference.cache
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.Properties.Resources.resources
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.csproj.GenerateResource.cache
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.csproj.CoreCompileInputs.cache
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.exe
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.pdb
Z:\C#_Itog\Морской бой_Капралов_k0224\Project\obj\Debug\Project.form.resources
C:\Users\Егор\Desktop\Project\bin\Debug\Project.exe.config
C:\Users\Егор\Desktop\Project\bin\Debug\Project.exe
C:\Users\Егор\Desktop\Project\bin\Debug\Project.pdb
C:\Users\Егор\Desktop\Project\obj\Debug\Project.csprojAssemblyReference.cache
C:\Users\Егор\Desktop\Project\obj\Debug\Project.form.resources
C:\Users\Егор\Desktop\Project\obj\Debug\Project.Properties.Resources.resources
C:\Users\Егор\Desktop\Project\obj\Debug\Project.csproj.GenerateResource.cache
C:\Users\Егор\Desktop\Project\obj\Debug\Project.csproj.CoreCompileInputs.cache
C:\Users\Егор\Desktop\Project\obj\Debug\Project.exe
C:\Users\Егор\Desktop\Project\obj\Debug\Project.pdb
C:\Users\Егор\Desktop\Project\obj\Debug\Project.fhelp.resources
C:\Users\Егор\Desktop\Project\obj\Debug\Project.fme.resources

Binary file not shown.

Binary file not shown.

BIN
obj/Debug/Project.exe Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
obj/Debug/Project.pdb Normal file

Binary file not shown.

Binary file not shown.