1
0
mirror of https://github.com/mastercodeon314/KsDumper-11.git synced 2024-11-28 08:20:53 +01:00
KsDumper-11/KsDumper11/Trigger.cs

44 lines
993 B
C#
Raw Normal View History

2023-01-25 01:40:45 +01:00
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);
}
}
}
}