This repository was archived by the owner on Sep 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
51 lines (45 loc) · 1.35 KB
/
App.xaml.cs
File metadata and controls
51 lines (45 loc) · 1.35 KB
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
using System.Diagnostics;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace C2Windows
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private async void Application_Startup(object sender, StartupEventArgs e)
{
//Console.Title = "C3App";
for (int i = 0; i != e.Args.Length; ++i)
{
if (e.Args[i] == "/dev")
{
Console.WriteLine("[DNC] Starting in Dev Mode");
AppGlobals.HostURL = "http://localhost:9000";
AppGlobals.DevMode = true;
}
}
System.Windows.Forms.NotifyIcon icon = new()
{
Visible = true,
Text = "C3App",
};
icon.Click += new EventHandler((s, e) =>
{
System.Windows.MessageBox.Show("C3App is running in the background.");
});
//C3Agent.StartAgent();
CoreWV.InitWV();
CiderDiscord.CiderDiscord.InitDiscord();
AppGlobals.mainWindow.Show();
//var sw = new SettingsWindow();
//sw.Show();
}
}
}