Exemplo n.º 1
0
 void NameFormLoad(object sender, EventArgs e)
 {
     if (!File.Exists(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\PlayerConfig.txt"))
     {
         SecurityFuncs.GeneratePlayerID();
         SecurityFuncs.WriteConfigValues();
         SecurityFuncs.ReadConfigValues();
     }
     else
     {
         SecurityFuncs.ReadConfigValues();
     }
     textBox1.Text = GlobalVars.Name;
 }
Exemplo n.º 2
0
 protected override void OnFormClosing(FormClosingEventArgs e)
 {
     base.OnFormClosing(e);
     SecurityFuncs.WriteConfigValues();
     GlobalVars.ReadyToLaunch = true;
 }