Files
friction/AlertPopup.cs
2018-02-18 21:08:01 +09:00

45 lines
878 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 friction
{
public partial class AlertPopup : Form
{
public AlertPopup()
{
this.DialogResult = DialogResult.Abort;
InitializeComponent();
Theme.Apply(this);
Theme.Apply(tbAlert);
Theme.Apply(chAgree);
Theme.Apply(btnOK);
Theme.Apply(btnCancel);
}
private void chAgree_CheckedChanged(object sender, EventArgs e)
{
btnOK.Enabled = (chAgree.Checked == true);
}
private void btnOK_Click(object sender, EventArgs e)
{
if(chAgree.Checked == true)
this.DialogResult = DialogResult.OK;
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Abort;
}
}
}