An option could manage a variable in the AppConfig of the program, in which you verify if it is the first time that you enter the system or not, according to that variable.
AppConfig
<configuration>
<appSettings>
<add key ="firstTime" value = "1"/>
</appSettings>
</configuration>
Now in your code, you would do the query at key
and check it and depending on that, do what you want.
string value = System.Configuration.ConfigurationManager.AppSettings[firstTime];
if (value = "1")
{
//haces lo que ocupes
//ahora guardas el valor nuevo diferente de 1
string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
string configFile = System.IO.Path.Combine(appPath, "App.config");
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap();
configFileMap.ExeConfigFilename = configFile;
System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);
config.AppSettings.Settings["firstTime"].Value = "0";
config.Save();
}