ща буду ломать

This commit is contained in:
Леонид Малафеев 2024-10-07 11:33:14 +04:00
parent b56ba80fad
commit 21fc0e3e1d
7 changed files with 2015 additions and 28092 deletions

View File

@ -97,6 +97,7 @@ namespace Controls
int cellsCount = table.Rows[1].Cells.Count;
//Объединение ячеек в столбце
if (MergeColls.Count != 0)
{
for (int i = 0; i < cellsCount; i++)
@ -110,7 +111,7 @@ namespace Controls
}
}
//Вывод данных
//Вывод данных в таблицу в файл
int rowData = 2;

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Binary file not shown.

View File

@ -82,18 +82,19 @@
pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
pictureBox1.Location = new Point(359, 21);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new Size(364, 304);
pictureBox1.Size = new Size(364, 348);
pictureBox1.TabIndex = 12;
pictureBox1.TabStop = false;
//
// textBox1
//
textBox1.Location = new Point(372, 33);
textBox1.Location = new Point(371, 314);
textBox1.Name = "textBox1";
textBox1.Size = new Size(336, 27);
textBox1.TabIndex = 13;
textBox1.Text = "НАЖМИТЕ НА КНОПКУ ЧТОБЫ СОЗДАТЬ";
textBox1.TextAlign = HorizontalAlignment.Center;
textBox1.TextChanged += textBox1_TextChanged;
//
// FormMain
//

View File

@ -19,28 +19,28 @@ namespace Forms
public FormMain()
{
InitializeComponent();
}
private void buttonLargeText_CLick(object sender, EventArgs e)
private void buttonLargeText_CLick(object sender, EventArgs e)
{
string[] strings = new string[] { "aboba", "not aboba" , "best aboba"};
string[] strings = new string[] { "aboba", "not aboba", "best aboba" };
LargeTextComponent largeText = new LargeTextComponent();
largeText.CreateDocument("C:\\Ulstu\\COP\\Cop_25\\Controls\\docs\\text.pdf", "OMEGA LABA 2", strings);
}
private void buttonCreateTable_Click(object sender, EventArgs e)
private void buttonCreateTable_Click(object sender, EventArgs e)
{
List<ColumnInfo> columnInfos = new List<ColumnInfo>()
{
new ColumnInfo("FirstName","Имя",50),
new ColumnInfo("LastName","Фамилия",100),
new ColumnInfo("Age","Возраст",200),
new ColumnInfo("Age","Возраст",75),
};
List<MergeCells> mergeCells = new List<MergeCells>()
{
new MergeCells("Данные", new int[] {0,2,2})
new MergeCells("Данные", new int[] {0,1,3})
};
List<Person> people = new List<Person>()
@ -56,11 +56,16 @@ namespace Forms
private void buttonDiagram_Click(object sender, EventArgs e)
{
Dictionary<string, List<Double>> data = new Dictionary<string, List<Double>>();
data.Add("Знач1", new List<double> { 0.5, 1, 2, 5, 2 });
data.Add("Знач2", new List<double> { 3, 2, 1, 3, 6 });
data.Add("Знач3", new List<double> { 7, 3, 1, 2, 5 });
data.Add("aboba1", new List<double> { 12, 1, 2, 5, 2 });
data.Add("aboba2", new List<double> { 3, 2, 1, 3, 6 });
data.Add("aboba3", new List<double> { 7, 3, 1, 2, 5 });
diagramComponent1.CreateLineDiagram("C:\\Ulstu\\COP\\Cop_25\\Controls\\docs\\diagram.pdf", "Заголовок", "Линейная диаграмма", data, LegendAlign.bottom);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}

File diff suppressed because it is too large Load Diff