agree popup 추가
This commit is contained in:
44
AlertPopup.cs
Normal file
44
AlertPopup.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user