mirror of
https://github.com/mastercodeon314/KsDumper-11.git
synced 2024-11-24 15:00:11 +01:00
44 lines
993 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|