├── screenshot.png ├── DateConverter.csproj ├── README.md ├── Program.cs ├── DateConverter.sln ├── .gitattributes ├── Form1.resx ├── Form1.cs ├── .github └── workflows │ └── dotnet-desktop.yml ├── .gitignore └── Form1.Designer.cs /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SajjadAemmi/Date-Converter/HEAD/screenshot.png -------------------------------------------------------------------------------- /DateConverter.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WinExe 5 | net6.0-windows 6 | enable 7 | true 8 | enable 9 | 10 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Date-Converter 2 | 3 | [![.NET Core Desktop](https://github.com/SajjadAemmi/Date-Converter/actions/workflows/dotnet-desktop.yml/badge.svg)](https://github.com/SajjadAemmi/Date-Converter/actions/workflows/dotnet-desktop.yml) 4 | 5 | تبدیل تاریخ با زبان #C 6 | 7 | هجری شمسی به میلادی و هجری قمری 8 | 9 | میلادی به هجری شمسی و هجری قمری 10 | 11 | هجری قمری به هجری شمسی و میلادی 12 | 13 | نمایش تاریخ امروز 14 | 15 | ![screenshot](screenshot.png) 16 | -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- 1 | namespace DateConverter 2 | { 3 | internal static class Program 4 | { 5 | /// 6 | /// The main entry point for the application. 7 | /// 8 | [STAThread] 9 | static void Main() 10 | { 11 | // To customize application configuration such as set high DPI settings or default font, 12 | // see https://aka.ms/applicationconfiguration. 13 | ApplicationConfiguration.Initialize(); 14 | Application.Run(new Form1()); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /DateConverter.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.4.33110.190 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DateConverter", "DateConverter.csproj", "{1DD18E8B-7390-442B-A782-F3202E9AB6C2}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {1DD18E8B-7390-442B-A782-F3202E9AB6C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {1DD18E8B-7390-442B-A782-F3202E9AB6C2}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {1DD18E8B-7390-442B-A782-F3202E9AB6C2}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {1DD18E8B-7390-442B-A782-F3202E9AB6C2}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {5998FA5D-4A78-4F13-B43C-E2C6EDE604EF} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | text/microsoft-resx 50 | 51 | 52 | 2.0 53 | 54 | 55 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 56 | 57 | 58 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 59 | 60 | -------------------------------------------------------------------------------- /Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | using System.Globalization; 11 | 12 | namespace DateConverter 13 | { 14 | public partial class Form1 : Form 15 | { 16 | PersianCalendar pc = new PersianCalendar(); 17 | HijriCalendar hc = new HijriCalendar(); 18 | GregorianCalendar gc = new GregorianCalendar(); 19 | 20 | string date1; 21 | DateTime datetime = new DateTime(); 22 | 23 | public Form1() 24 | { 25 | InitializeComponent(); 26 | } 27 | 28 | private void Form1_Load(object sender, EventArgs e) 29 | { 30 | radioButton1.Checked = true; 31 | datetime = DateTime.Now; 32 | label16.Text = datetime.Year + " / " + datetime.Month + " / " + datetime.Day; 33 | label17.Text = hc.GetYear(datetime) + " / " + hc.GetMonth(datetime) + " / " + hc.GetDayOfMonth(datetime); 34 | label18.Text = pc.GetYear(datetime) + " / " + pc.GetMonth(datetime) + " / " + pc.GetDayOfMonth(datetime); 35 | 36 | for (int i = 0; i < 5; i++) 37 | { 38 | comboBox1.Items.Add(i); 39 | } 40 | } 41 | 42 | private void button1_Click(object sender, EventArgs e) 43 | { 44 | if (comboBox1.Text != "" & comboBox1.Text != "" & comboBox1.Text != "") 45 | { 46 | date1 = comboBox3.Text + "/" + comboBox2.Text + "/" + comboBox1.Text; 47 | 48 | //تبدیل تاریخ شمسی به میلادی و قمری 49 | if (radioButton1.Checked) 50 | { 51 | DateTime dt1 = pc.ToDateTime(int.Parse(comboBox3.Text), int.Parse(comboBox2.Text), int.Parse(comboBox1.Text), 0, 0, 0, 0); 52 | label1.Text = date1; 53 | label9.Text = hc.GetYear(dt1) + "/" + hc.GetMonth(dt1) + "/" + hc.GetDayOfMonth(dt1); 54 | label10.Text = dt1.Year + "/" + dt1.Month + "/" + dt1.Day; 55 | } 56 | 57 | //تبدیل تاریخ قمری به شمسی و میلادی 58 | if (radioButton2.Checked) 59 | { 60 | DateTime dt2 = hc.ToDateTime(int.Parse(comboBox3.Text), int.Parse(comboBox2.Text), int.Parse(comboBox1.Text), 0, 0, 0, 0); 61 | label1.Text = pc.GetYear(dt2) + "/" + pc.GetMonth(dt2) + "/" + pc.GetDayOfMonth(dt2); 62 | label9.Text = date1; 63 | label10.Text = dt2.Year + "/" + dt2.Month + "/" + dt2.Day; 64 | } 65 | 66 | //تبدیل تاریخ میلادی به شمسی و قمری 67 | if (radioButton3.Checked) 68 | { 69 | DateTime dt = Convert.ToDateTime(date1); 70 | label1.Text = pc.GetYear(dt) + "/" + pc.GetMonth(dt) + "/" + pc.GetDayOfMonth(dt); 71 | label9.Text = hc.GetYear(dt) + "/" + hc.GetMonth(dt) + "/" + hc.GetDayOfMonth(dt); 72 | label10.Text = dt.Year + "/" + dt.Month + "/" + dt.Day; 73 | } 74 | } 75 | } 76 | 77 | private void about_Click(object sender, EventArgs e) 78 | { 79 | MessageBox.Show("برنامه نویس: سید سجاد ائمی", "درباره", MessageBoxButtons.OK, MessageBoxIcon.Information); 80 | } 81 | 82 | private void exit_Click(object sender, EventArgs e) 83 | { 84 | this.Close(); 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /.github/workflows/dotnet-desktop.yml: -------------------------------------------------------------------------------- 1 | # This workflow uses actions that are not certified by GitHub. 2 | # They are provided by a third-party and are governed by 3 | # separate terms of service, privacy policy, and support 4 | # documentation. 5 | 6 | # This workflow will build, test, sign and package a WPF or Windows Forms desktop application 7 | # built on .NET Core. 8 | # To learn how to migrate your existing application to .NET Core, 9 | # refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework 10 | # 11 | # To configure this workflow: 12 | # 13 | # 1. Configure environment variables 14 | # GitHub sets default environment variables for every workflow run. 15 | # Replace the variables relative to your project in the "env" section below. 16 | # 17 | # 2. Signing 18 | # Generate a signing certificate in the Windows Application 19 | # Packaging Project or add an existing signing certificate to the project. 20 | # Next, use PowerShell to encode the .pfx file using Base64 encoding 21 | # by running the following Powershell script to generate the output string: 22 | # 23 | # $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte 24 | # [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' 25 | # 26 | # Open the output file, SigningCertificate_Encoded.txt, and copy the 27 | # string inside. Then, add the string to the repo as a GitHub secret 28 | # and name it "Base64_Encoded_Pfx." 29 | # For more information on how to configure your signing certificate for 30 | # this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing 31 | # 32 | # Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key". 33 | # See "Build the Windows Application Packaging project" below to see how the secret is used. 34 | # 35 | # For more information on GitHub Actions, refer to https://github.com/features/actions 36 | # For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, 37 | # refer to https://github.com/microsoft/github-actions-for-desktop-apps 38 | 39 | name: .NET Core Desktop 40 | 41 | on: 42 | push: 43 | branches: [ "main" ] 44 | pull_request: 45 | branches: [ "main" ] 46 | 47 | jobs: 48 | 49 | build: 50 | 51 | strategy: 52 | matrix: 53 | configuration: [Debug, Release] 54 | 55 | runs-on: windows-latest # For a list of available runner types, refer to 56 | # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on 57 | 58 | env: 59 | Solution_Name: your-solution-name # Replace with your solution name, i.e. MyWpfApp.sln. 60 | Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. 61 | Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. 62 | Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. 63 | 64 | steps: 65 | - name: Checkout 66 | uses: actions/checkout@v3 67 | with: 68 | fetch-depth: 0 69 | 70 | # Install the .NET Core workload 71 | - name: Install .NET Core 72 | uses: actions/setup-dotnet@v3 73 | with: 74 | dotnet-version: 6.0.x 75 | 76 | # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild 77 | - name: Setup MSBuild.exe 78 | uses: microsoft/setup-msbuild@v1.0.2 79 | 80 | # Execute all unit tests in the solution 81 | - name: Execute unit tests 82 | run: dotnet test 83 | 84 | # Restore the application to populate the obj folder with RuntimeIdentifiers 85 | - name: Restore the application 86 | run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration 87 | env: 88 | Configuration: ${{ matrix.configuration }} 89 | 90 | # Decode the base 64 encoded pfx and save the Signing_Certificate 91 | - name: Decode the pfx 92 | run: | 93 | $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") 94 | $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx 95 | [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) 96 | 97 | # Create the app package by building and packaging the Windows Application Packaging project 98 | - name: Create the app package 99 | run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} 100 | env: 101 | Appx_Bundle: Always 102 | Appx_Bundle_Platforms: x86|x64 103 | Appx_Package_Build_Mode: StoreUpload 104 | Configuration: ${{ matrix.configuration }} 105 | 106 | # Remove the pfx 107 | - name: Remove the pfx 108 | run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx 109 | 110 | # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact 111 | - name: Upload build artifacts 112 | uses: actions/upload-artifact@v3 113 | with: 114 | name: MSIX Package 115 | path: ${{ env.Wap_Project_Directory }}\AppPackages 116 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb -------------------------------------------------------------------------------- /Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DateConverter 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.button1 = new System.Windows.Forms.Button(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.label3 = new System.Windows.Forms.Label(); 34 | this.label4 = new System.Windows.Forms.Label(); 35 | this.label6 = new System.Windows.Forms.Label(); 36 | this.label5 = new System.Windows.Forms.Label(); 37 | this.label7 = new System.Windows.Forms.Label(); 38 | this.label8 = new System.Windows.Forms.Label(); 39 | this.comboBox3 = new System.Windows.Forms.ComboBox(); 40 | this.comboBox2 = new System.Windows.Forms.ComboBox(); 41 | this.comboBox1 = new System.Windows.Forms.ComboBox(); 42 | this.label9 = new System.Windows.Forms.Label(); 43 | this.label10 = new System.Windows.Forms.Label(); 44 | this.radioButton1 = new System.Windows.Forms.RadioButton(); 45 | this.radioButton2 = new System.Windows.Forms.RadioButton(); 46 | this.radioButton3 = new System.Windows.Forms.RadioButton(); 47 | this.label13 = new System.Windows.Forms.Label(); 48 | this.label14 = new System.Windows.Forms.Label(); 49 | this.label15 = new System.Windows.Forms.Label(); 50 | this.label16 = new System.Windows.Forms.Label(); 51 | this.label17 = new System.Windows.Forms.Label(); 52 | this.label18 = new System.Windows.Forms.Label(); 53 | this.groupBox1 = new System.Windows.Forms.GroupBox(); 54 | this.exit = new System.Windows.Forms.Button(); 55 | this.about = new System.Windows.Forms.Button(); 56 | this.groupBox2 = new System.Windows.Forms.GroupBox(); 57 | this.groupBox1.SuspendLayout(); 58 | this.groupBox2.SuspendLayout(); 59 | this.SuspendLayout(); 60 | // 61 | // button1 62 | // 63 | this.button1.BackColor = System.Drawing.Color.YellowGreen; 64 | this.button1.Location = new System.Drawing.Point(9, 212); 65 | this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 66 | this.button1.Name = "button1"; 67 | this.button1.Size = new System.Drawing.Size(269, 55); 68 | this.button1.TabIndex = 3; 69 | this.button1.Text = "تبدیل"; 70 | this.button1.UseVisualStyleBackColor = false; 71 | this.button1.Click += new System.EventHandler(this.button1_Click); 72 | // 73 | // label1 74 | // 75 | this.label1.AutoSize = true; 76 | this.label1.Location = new System.Drawing.Point(9, 295); 77 | this.label1.Name = "label1"; 78 | this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 79 | this.label1.Size = new System.Drawing.Size(30, 19); 80 | this.label1.TabIndex = 4; 81 | this.label1.Text = "......."; 82 | this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 83 | // 84 | // label3 85 | // 86 | this.label3.AutoSize = true; 87 | this.label3.Location = new System.Drawing.Point(185, 295); 88 | this.label3.Name = "label3"; 89 | this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 90 | this.label3.Size = new System.Drawing.Size(93, 19); 91 | this.label3.TabIndex = 6; 92 | this.label3.Text = "هجری شمسی :"; 93 | // 94 | // label4 95 | // 96 | this.label4.AutoSize = true; 97 | this.label4.Location = new System.Drawing.Point(194, 320); 98 | this.label4.Name = "label4"; 99 | this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 100 | this.label4.Size = new System.Drawing.Size(84, 19); 101 | this.label4.TabIndex = 11; 102 | this.label4.Text = "هجری قمری :"; 103 | // 104 | // label6 105 | // 106 | this.label6.AutoSize = true; 107 | this.label6.Location = new System.Drawing.Point(222, 345); 108 | this.label6.Name = "label6"; 109 | this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 110 | this.label6.Size = new System.Drawing.Size(56, 19); 111 | this.label6.TabIndex = 16; 112 | this.label6.Text = "میلادی :"; 113 | // 114 | // label5 115 | // 116 | this.label5.AutoSize = true; 117 | this.label5.Location = new System.Drawing.Point(222, 149); 118 | this.label5.Name = "label5"; 119 | this.label5.Size = new System.Drawing.Size(27, 19); 120 | this.label5.TabIndex = 17; 121 | this.label5.Text = "روز"; 122 | // 123 | // label7 124 | // 125 | this.label7.AutoSize = true; 126 | this.label7.Location = new System.Drawing.Point(132, 149); 127 | this.label7.Name = "label7"; 128 | this.label7.Size = new System.Drawing.Size(28, 19); 129 | this.label7.TabIndex = 18; 130 | this.label7.Text = "ماه"; 131 | // 132 | // label8 133 | // 134 | this.label8.AutoSize = true; 135 | this.label8.Location = new System.Drawing.Point(38, 149); 136 | this.label8.Name = "label8"; 137 | this.label8.Size = new System.Drawing.Size(34, 19); 138 | this.label8.TabIndex = 19; 139 | this.label8.Text = "سال"; 140 | // 141 | // comboBox3 142 | // 143 | this.comboBox3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); 144 | this.comboBox3.FormattingEnabled = true; 145 | this.comboBox3.Location = new System.Drawing.Point(9, 172); 146 | this.comboBox3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 147 | this.comboBox3.Name = "comboBox3"; 148 | this.comboBox3.Size = new System.Drawing.Size(86, 21); 149 | this.comboBox3.TabIndex = 24; 150 | // 151 | // comboBox2 152 | // 153 | this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 154 | this.comboBox2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); 155 | this.comboBox2.FormattingEnabled = true; 156 | this.comboBox2.Items.AddRange(new object[] { 157 | "01", 158 | "02", 159 | "03", 160 | "04", 161 | "05", 162 | "06", 163 | "07", 164 | "08", 165 | "09", 166 | "10", 167 | "11", 168 | "12"}); 169 | this.comboBox2.Location = new System.Drawing.Point(101, 172); 170 | this.comboBox2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 171 | this.comboBox2.Name = "comboBox2"; 172 | this.comboBox2.Size = new System.Drawing.Size(87, 21); 173 | this.comboBox2.TabIndex = 23; 174 | // 175 | // comboBox1 176 | // 177 | this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 178 | this.comboBox1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); 179 | this.comboBox1.FormattingEnabled = true; 180 | this.comboBox1.Items.AddRange(new object[] { 181 | "01", 182 | "02", 183 | "03", 184 | "04", 185 | "05", 186 | "06", 187 | "07", 188 | "08", 189 | "09", 190 | "10", 191 | "11", 192 | "12", 193 | "13", 194 | "14", 195 | "15", 196 | "16", 197 | "17", 198 | "18", 199 | "19", 200 | "20", 201 | "21", 202 | "22", 203 | "23", 204 | "24", 205 | "25", 206 | "26", 207 | "27", 208 | "28", 209 | "29", 210 | "30", 211 | "31"}); 212 | this.comboBox1.Location = new System.Drawing.Point(194, 172); 213 | this.comboBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 214 | this.comboBox1.Name = "comboBox1"; 215 | this.comboBox1.Size = new System.Drawing.Size(84, 21); 216 | this.comboBox1.TabIndex = 22; 217 | // 218 | // label9 219 | // 220 | this.label9.AutoSize = true; 221 | this.label9.Location = new System.Drawing.Point(9, 320); 222 | this.label9.Name = "label9"; 223 | this.label9.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 224 | this.label9.Size = new System.Drawing.Size(30, 19); 225 | this.label9.TabIndex = 25; 226 | this.label9.Text = "......."; 227 | this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 228 | // 229 | // label10 230 | // 231 | this.label10.AutoSize = true; 232 | this.label10.Location = new System.Drawing.Point(9, 345); 233 | this.label10.Name = "label10"; 234 | this.label10.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 235 | this.label10.Size = new System.Drawing.Size(30, 19); 236 | this.label10.TabIndex = 26; 237 | this.label10.Text = "......."; 238 | this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 239 | // 240 | // radioButton1 241 | // 242 | this.radioButton1.AutoSize = true; 243 | this.radioButton1.Location = new System.Drawing.Point(174, 43); 244 | this.radioButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 245 | this.radioButton1.Name = "radioButton1"; 246 | this.radioButton1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 247 | this.radioButton1.Size = new System.Drawing.Size(104, 23); 248 | this.radioButton1.TabIndex = 27; 249 | this.radioButton1.TabStop = true; 250 | this.radioButton1.Text = "هجری شمسی"; 251 | this.radioButton1.UseVisualStyleBackColor = true; 252 | // 253 | // radioButton2 254 | // 255 | this.radioButton2.AutoSize = true; 256 | this.radioButton2.Location = new System.Drawing.Point(183, 74); 257 | this.radioButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 258 | this.radioButton2.Name = "radioButton2"; 259 | this.radioButton2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 260 | this.radioButton2.Size = new System.Drawing.Size(95, 23); 261 | this.radioButton2.TabIndex = 28; 262 | this.radioButton2.TabStop = true; 263 | this.radioButton2.Text = "هجری قمری"; 264 | this.radioButton2.UseVisualStyleBackColor = true; 265 | // 266 | // radioButton3 267 | // 268 | this.radioButton3.AutoSize = true; 269 | this.radioButton3.Location = new System.Drawing.Point(211, 105); 270 | this.radioButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 271 | this.radioButton3.Name = "radioButton3"; 272 | this.radioButton3.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 273 | this.radioButton3.Size = new System.Drawing.Size(67, 23); 274 | this.radioButton3.TabIndex = 29; 275 | this.radioButton3.TabStop = true; 276 | this.radioButton3.Text = "میلادی"; 277 | this.radioButton3.UseVisualStyleBackColor = true; 278 | // 279 | // label13 280 | // 281 | this.label13.AutoSize = true; 282 | this.label13.Location = new System.Drawing.Point(222, 81); 283 | this.label13.Name = "label13"; 284 | this.label13.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 285 | this.label13.Size = new System.Drawing.Size(56, 19); 286 | this.label13.TabIndex = 34; 287 | this.label13.Text = "میلادی :"; 288 | // 289 | // label14 290 | // 291 | this.label14.AutoSize = true; 292 | this.label14.Location = new System.Drawing.Point(194, 56); 293 | this.label14.Name = "label14"; 294 | this.label14.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 295 | this.label14.Size = new System.Drawing.Size(84, 19); 296 | this.label14.TabIndex = 33; 297 | this.label14.Text = "هجری قمری :"; 298 | // 299 | // label15 300 | // 301 | this.label15.AutoSize = true; 302 | this.label15.Location = new System.Drawing.Point(185, 31); 303 | this.label15.Name = "label15"; 304 | this.label15.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 305 | this.label15.Size = new System.Drawing.Size(93, 19); 306 | this.label15.TabIndex = 32; 307 | this.label15.Text = "هجری شمسی :"; 308 | // 309 | // label16 310 | // 311 | this.label16.AutoSize = true; 312 | this.label16.Location = new System.Drawing.Point(9, 80); 313 | this.label16.Name = "label16"; 314 | this.label16.RightToLeft = System.Windows.Forms.RightToLeft.No; 315 | this.label16.Size = new System.Drawing.Size(30, 19); 316 | this.label16.TabIndex = 37; 317 | this.label16.Text = "......."; 318 | this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 319 | // 320 | // label17 321 | // 322 | this.label17.AutoSize = true; 323 | this.label17.Location = new System.Drawing.Point(9, 55); 324 | this.label17.Name = "label17"; 325 | this.label17.RightToLeft = System.Windows.Forms.RightToLeft.No; 326 | this.label17.Size = new System.Drawing.Size(30, 19); 327 | this.label17.TabIndex = 36; 328 | this.label17.Text = "......."; 329 | this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 330 | // 331 | // label18 332 | // 333 | this.label18.AutoSize = true; 334 | this.label18.Location = new System.Drawing.Point(9, 30); 335 | this.label18.Name = "label18"; 336 | this.label18.RightToLeft = System.Windows.Forms.RightToLeft.No; 337 | this.label18.Size = new System.Drawing.Size(30, 19); 338 | this.label18.TabIndex = 35; 339 | this.label18.Text = "......."; 340 | this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 341 | // 342 | // groupBox1 343 | // 344 | this.groupBox1.Controls.Add(this.label13); 345 | this.groupBox1.Controls.Add(this.label15); 346 | this.groupBox1.Controls.Add(this.label14); 347 | this.groupBox1.Controls.Add(this.label16); 348 | this.groupBox1.Controls.Add(this.label18); 349 | this.groupBox1.Controls.Add(this.label17); 350 | this.groupBox1.Location = new System.Drawing.Point(16, 19); 351 | this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 352 | this.groupBox1.Name = "groupBox1"; 353 | this.groupBox1.Padding = new System.Windows.Forms.Padding(6, 8, 6, 8); 354 | this.groupBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 355 | this.groupBox1.Size = new System.Drawing.Size(287, 120); 356 | this.groupBox1.TabIndex = 38; 357 | this.groupBox1.TabStop = false; 358 | this.groupBox1.Text = "تاریخ امروز"; 359 | // 360 | // exit 361 | // 362 | this.exit.Location = new System.Drawing.Point(12, 536); 363 | this.exit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 364 | this.exit.Name = "exit"; 365 | this.exit.Size = new System.Drawing.Size(87, 30); 366 | this.exit.TabIndex = 39; 367 | this.exit.Text = "خروج"; 368 | this.exit.UseVisualStyleBackColor = true; 369 | this.exit.Click += new System.EventHandler(this.exit_Click); 370 | // 371 | // about 372 | // 373 | this.about.Location = new System.Drawing.Point(105, 536); 374 | this.about.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 375 | this.about.Name = "about"; 376 | this.about.Size = new System.Drawing.Size(87, 30); 377 | this.about.TabIndex = 40; 378 | this.about.Text = "درباره"; 379 | this.about.UseVisualStyleBackColor = true; 380 | this.about.Click += new System.EventHandler(this.about_Click); 381 | // 382 | // groupBox2 383 | // 384 | this.groupBox2.Controls.Add(this.radioButton1); 385 | this.groupBox2.Controls.Add(this.button1); 386 | this.groupBox2.Controls.Add(this.label1); 387 | this.groupBox2.Controls.Add(this.label3); 388 | this.groupBox2.Controls.Add(this.label4); 389 | this.groupBox2.Controls.Add(this.label6); 390 | this.groupBox2.Controls.Add(this.label5); 391 | this.groupBox2.Controls.Add(this.label7); 392 | this.groupBox2.Controls.Add(this.label8); 393 | this.groupBox2.Controls.Add(this.radioButton3); 394 | this.groupBox2.Controls.Add(this.comboBox1); 395 | this.groupBox2.Controls.Add(this.radioButton2); 396 | this.groupBox2.Controls.Add(this.comboBox2); 397 | this.groupBox2.Controls.Add(this.comboBox3); 398 | this.groupBox2.Controls.Add(this.label10); 399 | this.groupBox2.Controls.Add(this.label9); 400 | this.groupBox2.Location = new System.Drawing.Point(16, 147); 401 | this.groupBox2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 402 | this.groupBox2.Name = "groupBox2"; 403 | this.groupBox2.Padding = new System.Windows.Forms.Padding(6, 8, 6, 8); 404 | this.groupBox2.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 405 | this.groupBox2.Size = new System.Drawing.Size(287, 381); 406 | this.groupBox2.TabIndex = 39; 407 | this.groupBox2.TabStop = false; 408 | this.groupBox2.Text = "تبدیل تاریخ"; 409 | // 410 | // Form1 411 | // 412 | this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); 413 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 414 | this.ClientSize = new System.Drawing.Size(317, 580); 415 | this.Controls.Add(this.groupBox2); 416 | this.Controls.Add(this.about); 417 | this.Controls.Add(this.exit); 418 | this.Controls.Add(this.groupBox1); 419 | this.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); 420 | this.ForeColor = System.Drawing.Color.Black; 421 | this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); 422 | this.MaximizeBox = false; 423 | this.Name = "Form1"; 424 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 425 | this.Text = "Date Converter"; 426 | this.Load += new System.EventHandler(this.Form1_Load); 427 | this.groupBox1.ResumeLayout(false); 428 | this.groupBox1.PerformLayout(); 429 | this.groupBox2.ResumeLayout(false); 430 | this.groupBox2.PerformLayout(); 431 | this.ResumeLayout(false); 432 | 433 | } 434 | 435 | #endregion 436 | 437 | private System.Windows.Forms.Button button1; 438 | private System.Windows.Forms.Label label1; 439 | private System.Windows.Forms.Label label3; 440 | private System.Windows.Forms.Label label4; 441 | private System.Windows.Forms.Label label6; 442 | private System.Windows.Forms.Label label5; 443 | private System.Windows.Forms.Label label7; 444 | private System.Windows.Forms.Label label8; 445 | private System.Windows.Forms.ComboBox comboBox3; 446 | private System.Windows.Forms.ComboBox comboBox2; 447 | private System.Windows.Forms.ComboBox comboBox1; 448 | private System.Windows.Forms.Label label9; 449 | private System.Windows.Forms.Label label10; 450 | private System.Windows.Forms.RadioButton radioButton1; 451 | private System.Windows.Forms.RadioButton radioButton2; 452 | private System.Windows.Forms.RadioButton radioButton3; 453 | private System.Windows.Forms.Label label13; 454 | private System.Windows.Forms.Label label14; 455 | private System.Windows.Forms.Label label15; 456 | private System.Windows.Forms.Label label16; 457 | private System.Windows.Forms.Label label17; 458 | private System.Windows.Forms.Label label18; 459 | private System.Windows.Forms.GroupBox groupBox1; 460 | private System.Windows.Forms.Button exit; 461 | private System.Windows.Forms.Button about; 462 | private GroupBox groupBox2; 463 | } 464 | } 465 | 466 | --------------------------------------------------------------------------------