1
0
mirror of https://github.com/mastercodeon314/KsDumper-11.git synced 2024-11-28 00:10:52 +01:00
KsDumper-11/KsDumper11/Trigger.cs
2023-01-24 18:40:45 -06:00

44 lines
993 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KsDumper11
{
public partial class Trigger : UserControl
{
TriggerForm triggerFrm;
public Trigger()
{
InitializeComponent();
triggerFrm = new TriggerForm();
this.Click += Trigger_Click;
}
private void Trigger_Click(object sender, EventArgs e)
{
if (triggerFrm == null)
{
triggerFrm = new TriggerForm();
}
else
{
if (triggerFrm.IsDisposed)
{
triggerFrm = new TriggerForm();
}
}
if (!triggerFrm.Visible)
{
triggerFrm.ShowDialog(this.ParentForm);
}
}
}
}