-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitoring_attack.cs
51 lines (46 loc) · 1.37 KB
/
monitoring_attack.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
using Abdal_Security_Group_App.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Net;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
namespace Abdal_Security_Group_App
{
public partial class monitoring_attack : Telerik.WinControls.UI.RadForm
{
public monitoring_attack()
{
InitializeComponent();
}
public void AttackMonitoringLogWriter(string attack_log)
{
if (this.InvokeRequired)
{
this.Invoke(new Action(() =>
{
AttackLogBox.AppendText(attack_log + Environment.NewLine);
AttackLogBox.SelectionStart = AttackLogBox.Text.Length;
AttackLogBox.ScrollToCaret();
}));
}
else
{
AttackLogBox.AppendText(attack_log + Environment.NewLine);
AttackLogBox.SelectionStart = AttackLogBox.Text.Length;
AttackLogBox.ScrollToCaret();
}
}
private void monitoring_attack_Load(object sender, EventArgs e)
{
}
private void monitoring_attack_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Hide();
}
}
}