/
Program.cs
45 lines (38 loc) · 1.14 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
/*
* Copyright (c) Marc Clifton
* The Code Project Open License (CPOL) 1.02
* http://www.codeproject.com/info/cpol10.aspx
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using FlowSharpServiceInterfaces;
namespace FlowSharp
{
static partial class Program
{
[STAThread]
static void Main(string[] args)
{
string modules = "modules.xml";
if (args.Length == 1)
{
modules = args[0];
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Bootstrap(modules);
Icon icon = Properties.Resources.FlowSharp;
Form form = ServiceManager.Get<IFlowSharpService>().CreateDockingForm(icon);
Application.Run(form);
}
private static void ShowAnyExceptions(List<Exception> exceptions)
{
foreach (var ex in exceptions)
{
MessageBox.Show(ex.Message, "Module Finalizer Exception", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}