лаба 3, часть 1

This commit is contained in:
a.puchkina 2024-10-15 00:34:02 +04:00
parent 97b6b89c3a
commit fc9e59165f
10 changed files with 579 additions and 1 deletions

View File

@ -5,7 +5,9 @@ VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "COP_5", "COP_5\COP_5.csproj", "{58462D33-6017-4160-B57C-59E3C03C0654}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsApp", "WinFormsApp\WinFormsApp.csproj", "{82CFE6F8-94F2-45E0-B6C2-59E036235BB9}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinFormsApp", "WinFormsApp\WinFormsApp.csproj", "{82CFE6F8-94F2-45E0-B6C2-59E036235BB9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryAccountingApp_lab3", "LibraryAccountingApp_lab3\LibraryAccountingApp_lab3.csproj", "{6B665435-1A86-44B4-B4C9-B0F29559314D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -21,6 +23,10 @@ Global
{82CFE6F8-94F2-45E0-B6C2-59E036235BB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82CFE6F8-94F2-45E0-B6C2-59E036235BB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82CFE6F8-94F2-45E0-B6C2-59E036235BB9}.Release|Any CPU.Build.0 = Release|Any CPU
{6B665435-1A86-44B4-B4C9-B0F29559314D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B665435-1A86-44B4-B4C9-B0F29559314D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B665435-1A86-44B4-B4C9-B0F29559314D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B665435-1A86-44B4-B4C9-B0F29559314D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
@ -12,6 +13,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="ComponentsLibraryNet60" Version="1.0.0" />
<PackageReference Include="FedComponentLib" Version="1.0.0" />
<PackageReference Include="PdfSharp.MigraDoc.Standard" Version="1.51.15" />
<PackageReference Include="PDFSharp.Standard" Version="1.51.15" />
</ItemGroup>

View File

@ -0,0 +1,11 @@
namespace LibraryAccountingApp_lab3
{
public class Book
{
public int Id { get; set; }
public string Title { get; set; }
//public byte[] Image { get; set; }
public string Author { get; set; }
public DateTime Date { get; set; }
}
}

View File

@ -0,0 +1,252 @@
namespace LibraryAccountingApp_lab3
{
partial class Form1
{
/// <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()
{
components = new System.ComponentModel.Container();
componentDocumentWithChartBarWord1 = new ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartBarWord(components);
buttonChooseImage = new Button();
groupBox1 = new GroupBox();
textBoxTitle = new TextBox();
buttonBookAdd = new Button();
buttonClearImage = new Button();
textBoxImage = new TextBox();
label2 = new Label();
controlSelectedComboBoxSingleAuthor = new ControlsLibraryNet60.Selected.ControlSelectedComboBoxSingle();
dateTextBoxDate = new FedComponentLib.DateTextBox();
label1 = new Label();
groupBox2 = new GroupBox();
dataGridViewBooks = new DataGridView();
Id = new DataGridViewTextBoxColumn();
Title = new DataGridViewTextBoxColumn();
Автор = new DataGridViewTextBoxColumn();
Date = new DataGridViewTextBoxColumn();
controlDataTableCellBooks = new ControlsLibraryNet60.Data.ControlDataTableCell();
groupBox1.SuspendLayout();
groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridViewBooks).BeginInit();
SuspendLayout();
//
// buttonChooseImage
//
buttonChooseImage.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
buttonChooseImage.Location = new Point(52, 238);
buttonChooseImage.Margin = new Padding(3, 2, 3, 2);
buttonChooseImage.Name = "buttonChooseImage";
buttonChooseImage.Size = new Size(125, 29);
buttonChooseImage.TabIndex = 17;
buttonChooseImage.Text = "Выбрать обложку";
buttonChooseImage.UseVisualStyleBackColor = true;
buttonChooseImage.Click += buttonChooseImage_Click;
//
// groupBox1
//
groupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
groupBox1.Controls.Add(textBoxTitle);
groupBox1.Controls.Add(buttonBookAdd);
groupBox1.Controls.Add(buttonClearImage);
groupBox1.Controls.Add(textBoxImage);
groupBox1.Controls.Add(label2);
groupBox1.Controls.Add(controlSelectedComboBoxSingleAuthor);
groupBox1.Controls.Add(dateTextBoxDate);
groupBox1.Controls.Add(label1);
groupBox1.Controls.Add(buttonChooseImage);
groupBox1.Location = new Point(12, 12);
groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(243, 431);
groupBox1.TabIndex = 18;
groupBox1.TabStop = false;
groupBox1.Text = "Загрузка книги";
//
// textBoxTitle
//
textBoxTitle.Location = new Point(6, 46);
textBoxTitle.Name = "textBoxTitle";
textBoxTitle.Size = new Size(221, 23);
textBoxTitle.TabIndex = 19;
//
// buttonBookAdd
//
buttonBookAdd.BackColor = Color.YellowGreen;
buttonBookAdd.Location = new Point(18, 380);
buttonBookAdd.Name = "buttonBookAdd";
buttonBookAdd.Size = new Size(209, 32);
buttonBookAdd.TabIndex = 19;
buttonBookAdd.Text = "Добавить книгу";
buttonBookAdd.UseVisualStyleBackColor = false;
buttonBookAdd.Click += buttonBookAdd_Click;
//
// buttonClearImage
//
buttonClearImage.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
buttonClearImage.Font = new Font("Segoe UI", 7F, FontStyle.Regular, GraphicsUnit.Point);
buttonClearImage.Location = new Point(110, 301);
buttonClearImage.Name = "buttonClearImage";
buttonClearImage.Size = new Size(117, 23);
buttonClearImage.TabIndex = 19;
buttonClearImage.Text = "Очистить";
buttonClearImage.UseVisualStyleBackColor = true;
buttonClearImage.Click += buttonClearImage_Click;
//
// textBoxImage
//
textBoxImage.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
textBoxImage.Location = new Point(6, 272);
textBoxImage.Name = "textBoxImage";
textBoxImage.ReadOnly = true;
textBoxImage.Size = new Size(221, 23);
textBoxImage.TabIndex = 24;
//
// label2
//
label2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
label2.AutoSize = true;
label2.Location = new Point(6, 149);
label2.Name = "label2";
label2.Size = new Size(43, 15);
label2.TabIndex = 22;
label2.Text = "Автор:";
//
// controlSelectedComboBoxSingleAuthor
//
controlSelectedComboBoxSingleAuthor.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
controlSelectedComboBoxSingleAuthor.Location = new Point(6, 167);
controlSelectedComboBoxSingleAuthor.Margin = new Padding(5, 3, 5, 3);
controlSelectedComboBoxSingleAuthor.Name = "controlSelectedComboBoxSingleAuthor";
controlSelectedComboBoxSingleAuthor.SelectedElement = "";
controlSelectedComboBoxSingleAuthor.Size = new Size(221, 24);
controlSelectedComboBoxSingleAuthor.TabIndex = 19;
//
// dateTextBoxDate
//
dateTextBoxDate.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
dateTextBoxDate.DatePattern = null;
dateTextBoxDate.Location = new Point(6, 75);
dateTextBoxDate.Name = "dateTextBoxDate";
dateTextBoxDate.Size = new Size(221, 53);
dateTextBoxDate.TabIndex = 21;
//
// label1
//
label1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
label1.AutoSize = true;
label1.Location = new Point(6, 27);
label1.Name = "label1";
label1.Size = new Size(62, 15);
label1.TabIndex = 19;
label1.Text = "Название:";
//
// groupBox2
//
groupBox2.Controls.Add(dataGridViewBooks);
groupBox2.Location = new Point(261, 12);
groupBox2.Name = "groupBox2";
groupBox2.Size = new Size(527, 286);
groupBox2.TabIndex = 19;
groupBox2.TabStop = false;
groupBox2.Text = "Вывод книг";
//
// dataGridViewBooks
//
dataGridViewBooks.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewBooks.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewBooks.Columns.AddRange(new DataGridViewColumn[] { Id, Title, Автор, Date });
dataGridViewBooks.Location = new Point(6, 22);
dataGridViewBooks.Name = "dataGridViewBooks";
dataGridViewBooks.RowTemplate.Height = 25;
dataGridViewBooks.Size = new Size(515, 258);
dataGridViewBooks.TabIndex = 20;
//
// Id
//
Id.HeaderText = "Идентификатор";
Id.Name = "Id";
Id.Visible = false;
//
// Title
//
Title.HeaderText = "Название";
Title.Name = "Title";
//
// Автор
//
Автор.HeaderText = "Author";
Автор.Name = "Автор";
//
// Date
//
Date.HeaderText = "Дата издания";
Date.Name = "Date";
//
// controlDataTableCellBooks
//
controlDataTableCellBooks.Location = new Point(623, 250);
controlDataTableCellBooks.Margin = new Padding(4, 3, 4, 3);
controlDataTableCellBooks.Name = "controlDataTableCellBooks";
controlDataTableCellBooks.SelectedRowIndex = -1;
controlDataTableCellBooks.Size = new Size(159, 106);
controlDataTableCellBooks.TabIndex = 0;
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
Controls.Add(controlDataTableCellBooks);
Controls.Add(groupBox2);
Controls.Add(groupBox1);
Name = "Form1";
Text = "Библиотека";
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridViewBooks).EndInit();
ResumeLayout(false);
}
#endregion
private ComponentsLibraryNet60.DocumentWithChart.ComponentDocumentWithChartBarWord componentDocumentWithChartBarWord1;
private Button buttonChooseImage;
private GroupBox groupBox1;
private FedComponentLib.DateTextBox dateTextBoxDate;
private Label label1;
private Label label2;
private ControlsLibraryNet60.Selected.ControlSelectedComboBoxSingle controlSelectedComboBoxSingleAuthor;
private TextBox textBoxImage;
private Button buttonClearImage;
private Button buttonBookAdd;
private TextBox textBoxTitle;
private GroupBox groupBox2;
private ControlsLibraryNet60.Data.ControlDataTableCell controlDataTableCellBooks;
private DataGridView dataGridViewBooks;
private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn Title;
private DataGridViewTextBoxColumn Автор;
private DataGridViewTextBoxColumn Date;
}
}

View File

@ -0,0 +1,115 @@
using COP_5;
using FedComponentLib;
namespace LibraryAccountingApp_lab3
{
public partial class Form1 : Form
{
private byte[]? selectedImage = new byte[16];
private int counterBooksIds = 0;
public Form1()
{
InitializeComponent();
InitializeTableBooks();
FillControlSelectedComboBoxSingle();
dateTextBoxDate.DatePattern = @"^(0[1-9]|[12][0-9]|3[01])\s+(ÿíâàðü|ôåâðàëü|ìàðò|àïðåëü|ìàé|èþíü|èþëü|àâãóñò|ñåíòÿáðü|îêòÿáðü|íîÿáðü|äåêàáðü)\s+\d{4}$";
}
private void FillControlSelectedComboBoxSingle()
{
List<string> list = new List<string>() {
"Äåíèåë Êèç",
"Àëåêñàíäð Ïóøêèí",
"Ô¸äîð Äîñòîåâñêèé",
"Áîðèñ Àêóíèí",
"Íèêîëàñ Ñïàðêñ"
};
for (int i = 0; i < list.Count; i++)
{
controlSelectedComboBoxSingleAuthor.AddElement(list[i]);
}
}
private void InitializeTableBooks()
{
Book book1 = new Book
{
Id = 1,
Title = "Title 1",
Author = "Author 1",
Date = DateTime.Now,
};
Book book2 = new Book
{
Id = 2,
Title = "Title 2",
Author = "Author 2",
Date = DateTime.Now.AddDays(-1),
};
//controlDataTableCellBooks.dataGridView.Columns.Add("Title", "Title");
//controlDataTableCellBooks.AddCell(0, 0, book1);
dataGridViewBooks.Rows.Add(book1);
dataGridViewBooks.Rows.Add(book2);
}
private void buttonChooseImage_Click(object sender, EventArgs e)
{
using OpenFileDialog openFileDialog = new OpenFileDialog
{
Multiselect = true,
Filter = "Èçîáðàæåíèÿ|*.jpg;*.jpeg;*.png;*.bmp"
};
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
ClearImage();
foreach (string filePath in openFileDialog.FileNames)
{
selectedImage = File.ReadAllBytes(filePath);
textBoxImage.Text = Path.GetFileName(filePath);
}
}
}
private void ClearImage()
{
selectedImage = null;
textBoxImage.Clear();
}
private void buttonClearImage_Click(object sender, EventArgs e)
{
ClearImage();
}
private void buttonBookAdd_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBoxTitle.Text))
MessageBox.Show("Ââåäèòå íàçâàíèå!", "Îøèáêà", MessageBoxButtons.OK, MessageBoxIcon.Error);
try
{
if (string.IsNullOrEmpty(dateTextBoxDate.TextBoxValue))
MessageBox.Show("Ââåäèòå äàòó èçäàíèÿ!", "Îøèáêà", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Îøèáêà", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
if (string.IsNullOrEmpty(controlSelectedComboBoxSingleAuthor.SelectedElement))
MessageBox.Show("Âûáåðèòå àâòîðà!", "Îøèáêà", MessageBoxButtons.OK, MessageBoxIcon.Error);
if (string.IsNullOrEmpty(textBoxImage.Text))
MessageBox.Show("Âûáåðèòå îáëîæêó!", "Îøèáêà", MessageBoxButtons.OK, MessageBoxIcon.Error);
//controlDataTableCellBooks.AddCell<T>(0, 0,)
Book newBook = new Book
{
Id = counterBooksIds,
Title = textBoxTitle.Text,
Author = controlSelectedComboBoxSingleAuthor.SelectedElement,
Date = DateTime.Now,
};
dataGridViewBooks.Rows.Add(newBook);
}
}
}

View File

@ -0,0 +1,147 @@
<?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="componentDocumentWithChartBarWord1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Title.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Автор.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Title.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Автор.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ComponentsLibraryNet60" Version="1.0.0" />
<PackageReference Include="ControlsLibraryNet60" Version="1.0.0" />
<PackageReference Include="FedComponentLib" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\COP_5\COP_5.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,17 @@
namespace LibraryAccountingApp_lab3
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

View File

@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
chooseCheckedListBox1 = new COP_5.ChooseCheckedListBox();
label1 = new Label();
label2 = new Label();
@ -55,6 +56,7 @@
buttonCreateDiagramPdf = new Button();
listBoxWithImages = new ListBox();
buttonTablePdf = new Button();
pdfForImages1 = new COP_5.PdfForImages(components);
((System.ComponentModel.ISupportInitialize)numericUpDownRangeMin).BeginInit();
((System.ComponentModel.ISupportInitialize)numericUpDownRangeMax).BeginInit();
groupBox1.SuspendLayout();
@ -399,5 +401,6 @@
private Label label7;
private TextBox PostTextBox;
private Button buttonSelectEmployee;
private COP_5.PdfForImages pdfForImages1;
}
}

View File

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="pdfForImages1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>