agree popup 추가

This commit is contained in:
2018-02-18 21:08:01 +09:00
parent df16cb5533
commit 86bf3ca21b
8 changed files with 376 additions and 31 deletions

View File

@@ -54,6 +54,19 @@ namespace friction
dockPanel.Font = new Font(dockPanel.Font.FontFamily, 12.0f);
}
private void MainForm_Shown(object sender, EventArgs e)
{
if (Config.GetInstance().DidAgreeAlert() == true)
return;
AlertPopup alert = new AlertPopup();
DialogResult alertResult = alert.ShowDialog();
if (alertResult == DialogResult.OK)
Config.GetInstance().SetAgreeAlert();
else
Application.Exit();
}
void UpdateRecentFile()
{
recentToolStripMenuItem.DropDownItems.Clear();