-
Notifications
You must be signed in to change notification settings - Fork 0
/
Srq.cs
52 lines (46 loc) · 1.37 KB
/
Srq.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EDISupportTool
{
public class Srq
{
public void newSRQ()
{
Kit set = new Kit();
Console.WriteLine("\n");
set.CreateDirEDI();
Console.ForegroundColor = ConsoleColor.Gray;
Console.SetWindowSize(100, 30);
Console.SetBufferSize(100, 30);
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("\n");
Console.WriteLine(@"FYI: All objects will be created in C:\EDI");
Console.ResetColor();
Console.Write("\nEnter the SRQ number you are working on: ");
string srq_no = Console.ReadLine();
long int_no;
bool convert = long.TryParse(srq_no, out int_no);
if (!convert)
{
//jezeli nie wprowadzono liczby
Console.WriteLine("\nEnter numbers, not letters.");
Srq srq = new Srq();
srq.newSRQ();
}
else
{
// jezeli wprowadzono liczbe
set.CreateDirSRQ(int_no);
}
}
/*
public void Back()
{
Program start = new Program();
Program.Main();
} */
}
}