-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
44 lines (36 loc) · 1.23 KB
/
Program.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
using Gtk;
using StorageAndTrade_1_0.Довідники;
namespace StorageAndTrade
{
class Program
{
#region Global Var
/// <summary>
/// Основна форма
/// </summary>
public static FormStorageAndTrade? GeneralForm { get; set; }
/// <summary>
/// Основний блокнот
/// </summary>
public static Notebook? GeneralNotebook { get; set; }
/// <summary>
/// Авторизований користувач
/// </summary>
public static Користувачі_Pointer Користувач { get; set; } = new Користувачі_Pointer();
#endregion
public static void Main()
{
Application.Init();
_ = new FormConfigurationSelection();
string styleDefaultFile = System.IO.Path.Combine(AppContext.BaseDirectory, "Default.css");
if (File.Exists(styleDefaultFile))
{
CssProvider provider = new CssProvider();
provider.LoadFromPath(styleDefaultFile);
StyleContext.AddProviderForScreen(Gdk.Screen.Default, provider, 800);
}
Application.Run();
}
}
}