Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
not-DEADPOOL authored Oct 12, 2022
1 parent c0617fc commit 4ebb3ab
Show file tree
Hide file tree
Showing 13 changed files with 175 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Days_left_for_christmas/Days_left_for_christmas.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29326.143
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Days_left_for_christmas", "Days_left_for_christmas\Days_left_for_christmas.csproj", "{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F04729B9-12B1-46A0-A840-E5860E436C12}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions Days_left_for_christmas/Days_left_for_christmas/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F13CBD44-05B3-4821-8ADB-1C2FAF309AC5}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Days_left_for_christmas</RootNamespace>
<AssemblyName>Days_left_for_christmas</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="days_left_christmas.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Le informazioni generali relative a un assembly sono controllate dal seguente
// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
// associate a un assembly.
[assembly: AssemblyTitle("Days_left_for_christmas")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Days_left_for_christmas")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Se si imposta ComVisible su false, i tipi in questo assembly non saranno visibili
// ai componenti COM. Se è necessario accedere a un tipo in questo assembly da
// COM, impostare su true l'attributo ComVisible per tale tipo.
[assembly: ComVisible(false)]

// Se il progetto viene esposto a COM, il GUID seguente verrà utilizzato come ID della libreria dei tipi
[assembly: Guid("f13cbd44-05b3-4821-8adb-1c2faf309ac5")]

// Le informazioni sulla versione di un assembly sono costituite dai seguenti quattro valori:
//
// Versione principale
// Versione secondaria
// Numero di build
// Revisione
//
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Days_left_for_christmas
{
class days_left_christmas
{
static void Main(string[] args)
{
bool risp = true;
Console.Write("Vuoi sapere tra quanto è Natale? [s/n]");
char risposta = Convert.ToChar(Console.ReadLine());
giorni(risposta == 's' ? risp == true : risp == false);
Console.ReadKey();
}
static void giorni(bool cond)
{
if (cond)
{
DateTime oggi = DateTime.Today;
DateTime Natale = new DateTime(oggi.Year, 12, 25);
int giorni_rimanenti = Convert.ToInt32(Natale.DayOfYear) - Convert.ToInt32(oggi.DayOfYear);
if (giorni_rimanenti < 0)
{
DateTime ultimo = new DateTime(oggi.Year, 12, 31);
int tmp = Convert.ToInt32(ultimo.DayOfYear) - Convert.ToInt32(oggi.DayOfYear);
giorni_rimanenti = tmp + Convert.ToInt32(Natale.DayOfYear);
Console.WriteLine($"Mancano {giorni_rimanenti} giorni a Natale!");
return;
}
Console.WriteLine($"Mancano {giorni_rimanenti} giorni a Natale!");
Console.Write("Non sei contento?");
}
else
{
Console.WriteLine("Come vuoi,rimani col dubbio...");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\bin\Debug\Days_left_for_christmas.exe.config
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\bin\Debug\Days_left_for_christmas.exe
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\bin\Debug\Days_left_for_christmas.pdb
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\obj\Debug\Days_left_for_christmas.csprojAssemblyReference.cache
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\obj\Debug\Days_left_for_christmas.exe
C:\Users\apilati\source\repos\Days_left_for_christmas\Days_left_for_christmas\obj\Debug\Days_left_for_christmas.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 4ebb3ab

Please sign in to comment.