tokjo
This commit is contained in:
parent
ae6ae5fad4
commit
957206ef6a
8
haromszogek.txt
Normal file
8
haromszogek.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
1,11 1,48 1,85
|
||||||
|
8 15 17
|
||||||
|
5 13 12
|
||||||
|
3 4 5
|
||||||
|
6 6 6
|
||||||
|
0 1 2
|
||||||
|
5 10 15
|
||||||
|
11,7 15,6 19,5
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -19,7 +20,22 @@ namespace haromszogek
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
openFileDialog1.ShowDialog();
|
if (openFileDialog1.ShowDialog()==DialogResult.OK)
|
||||||
|
{
|
||||||
|
string[] sorok = File.ReadAllLines(openFileDialog1.FileName);
|
||||||
|
List<DHaromszog> derekszoguek = new List<DHaromszog>();
|
||||||
|
for (int i = 0; i < sorok.Length; i++)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DHaromszog dh = new DHaromszog(sorok[i], i + 1);
|
||||||
|
}
|
||||||
|
catch (Exception hiba)
|
||||||
|
{
|
||||||
|
listBox1.Items.Add(hiba.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
|
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user