📜  C# 检查是否首次运行 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.478000             🧑  作者: Mango

代码示例1
if(Properties.Settings.Default.FirstRun == true)
{ lblGreetings.Text = "Welcome New User";
  //Change the value since the program has run once now
  Properties.Settings.Default.FirstRun = false;
  Properties.Settings.Default.Save(); }
else
{ lblGreetings.Text = "Welcome Back User"; }