From 74c9a3d36fcdbc3a3dd55c9759011399458cfc5c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 19 Feb 2021 21:13:49 +0200 Subject: Renamed "Visual Basic Projects" folder to "VB.Net Projects" --- VB.Net Projects/Biorythm/Biorythm.sln | 20 +++ VB.Net Projects/Biorythm/Biorythm/App.config | 6 + VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj | 127 +++++++++++++++++++ .../Biorythm/Biorythm/Biorythm.vbproj.user | 3 + .../Biorythm/Biorythm/Form1.Designer.vb | 141 +++++++++++++++++++++ VB.Net Projects/Biorythm/Biorythm/Form1.resx | 120 ++++++++++++++++++ VB.Net Projects/Biorythm/Biorythm/Form1.vb | 29 +++++ .../Biorythm/My Project/Application.Designer.vb | 38 ++++++ .../Biorythm/Biorythm/My Project/Application.myapp | 11 ++ .../Biorythm/Biorythm/My Project/AssemblyInfo.vb | 35 +++++ .../Biorythm/My Project/Resources.Designer.vb | 62 +++++++++ .../Biorythm/Biorythm/My Project/Resources.resx | 117 +++++++++++++++++ .../Biorythm/My Project/Settings.Designer.vb | 73 +++++++++++ .../Biorythm/Biorythm/My Project/Settings.settings | 7 + 14 files changed, 789 insertions(+) create mode 100644 VB.Net Projects/Biorythm/Biorythm.sln create mode 100644 VB.Net Projects/Biorythm/Biorythm/App.config create mode 100644 VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj create mode 100644 VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj.user create mode 100644 VB.Net Projects/Biorythm/Biorythm/Form1.Designer.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/Form1.resx create mode 100644 VB.Net Projects/Biorythm/Biorythm/Form1.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Application.Designer.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Application.myapp create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/AssemblyInfo.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Resources.Designer.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Resources.resx create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Settings.Designer.vb create mode 100644 VB.Net Projects/Biorythm/Biorythm/My Project/Settings.settings (limited to 'VB.Net Projects/Biorythm') diff --git a/VB.Net Projects/Biorythm/Biorythm.sln b/VB.Net Projects/Biorythm/Biorythm.sln new file mode 100644 index 0000000..8c88624 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Biorythm", "Biorythm\Biorythm.vbproj", "{65EA9845-D925-4E10-A5F8-3A09D0868447}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {65EA9845-D925-4E10-A5F8-3A09D0868447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {65EA9845-D925-4E10-A5F8-3A09D0868447}.Debug|Any CPU.Build.0 = Debug|Any CPU + {65EA9845-D925-4E10-A5F8-3A09D0868447}.Release|Any CPU.ActiveCfg = Release|Any CPU + {65EA9845-D925-4E10-A5F8-3A09D0868447}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/VB.Net Projects/Biorythm/Biorythm/App.config b/VB.Net Projects/Biorythm/Biorythm/App.config new file mode 100644 index 0000000..49c50e0 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj b/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj new file mode 100644 index 0000000..862287b --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj @@ -0,0 +1,127 @@ + + + + + Debug + AnyCPU + {65EA9845-D925-4E10-A5F8-3A09D0868447} + WinExe + Biorythm.My.MyApplication + Biorythm + Biorythm + 512 + WindowsForms + v4.5 + + + AnyCPU + true + full + true + true + bin\Debug\ + Biorythm.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + Biorythm.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + Form1.vb + Form + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + + Form1.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + + \ No newline at end of file diff --git a/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj.user b/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj.user new file mode 100644 index 0000000..695b5c7 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/Biorythm.vbproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/VB.Net Projects/Biorythm/Biorythm/Form1.Designer.vb b/VB.Net Projects/Biorythm/Biorythm/Form1.Designer.vb new file mode 100644 index 0000000..68aabf2 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/Form1.Designer.vb @@ -0,0 +1,141 @@ + _ +Partial Class Form1 + Inherits System.Windows.Forms.Form + + 'Form overrides dispose to clean up the component list. + _ + Protected Overrides Sub Dispose(ByVal disposing As Boolean) + Try + If disposing AndAlso components IsNot Nothing Then + components.Dispose() + End If + Finally + MyBase.Dispose(disposing) + End Try + End Sub + + 'Required by the Windows Form Designer + Private components As System.ComponentModel.IContainer + + 'NOTE: The following procedure is required by the Windows Form Designer + 'It can be modified using the Windows Form Designer. + 'Do not modify it using the code editor. + _ + Private Sub InitializeComponent() + Me.lblHeader = New System.Windows.Forms.Label() + Me.lblBirthDay = New System.Windows.Forms.Label() + Me.BirthDay = New System.Windows.Forms.DateTimePicker() + Me.GroupBox1 = New System.Windows.Forms.GroupBox() + Me.rbIntellectual = New System.Windows.Forms.RadioButton() + Me.rbEmotional = New System.Windows.Forms.RadioButton() + Me.rbPhysical = New System.Windows.Forms.RadioButton() + Me.btnCalculate = New System.Windows.Forms.Button() + Me.GroupBox1.SuspendLayout() + Me.SuspendLayout() + ' + 'lblHeader + ' + Me.lblHeader.AutoSize = True + Me.lblHeader.Location = New System.Drawing.Point(62, 18) + Me.lblHeader.Name = "lblHeader" + Me.lblHeader.Size = New System.Drawing.Size(133, 13) + Me.lblHeader.TabIndex = 0 + Me.lblHeader.Text = "Калкулатор на биоритми" + ' + 'lblBirthDay + ' + Me.lblBirthDay.AutoSize = True + Me.lblBirthDay.Location = New System.Drawing.Point(21, 68) + Me.lblBirthDay.Name = "lblBirthDay" + Me.lblBirthDay.Size = New System.Drawing.Size(95, 13) + Me.lblBirthDay.TabIndex = 1 + Me.lblBirthDay.Text = "Дата на раждане" + ' + 'BirthDay + ' + Me.BirthDay.Location = New System.Drawing.Point(163, 68) + Me.BirthDay.Name = "BirthDay" + Me.BirthDay.Size = New System.Drawing.Size(90, 20) + Me.BirthDay.TabIndex = 2 + ' + 'GroupBox1 + ' + Me.GroupBox1.Controls.Add(Me.rbIntellectual) + Me.GroupBox1.Controls.Add(Me.rbEmotional) + Me.GroupBox1.Controls.Add(Me.rbPhysical) + Me.GroupBox1.Location = New System.Drawing.Point(56, 94) + Me.GroupBox1.Name = "GroupBox1" + Me.GroupBox1.Size = New System.Drawing.Size(154, 113) + Me.GroupBox1.TabIndex = 3 + Me.GroupBox1.TabStop = False + ' + 'rbIntellectual + ' + Me.rbIntellectual.AutoSize = True + Me.rbIntellectual.Location = New System.Drawing.Point(6, 78) + Me.rbIntellectual.Name = "rbIntellectual" + Me.rbIntellectual.Size = New System.Drawing.Size(153, 17) + Me.rbIntellectual.TabIndex = 2 + Me.rbIntellectual.TabStop = True + Me.rbIntellectual.Text = "Интелигентно състояние" + Me.rbIntellectual.UseVisualStyleBackColor = True + ' + 'rbEmotional + ' + Me.rbEmotional.AutoSize = True + Me.rbEmotional.Location = New System.Drawing.Point(6, 44) + Me.rbEmotional.Name = "rbEmotional" + Me.rbEmotional.Size = New System.Drawing.Size(151, 17) + Me.rbEmotional.TabIndex = 1 + Me.rbEmotional.TabStop = True + Me.rbEmotional.Text = "Емоционално състояние" + Me.rbEmotional.UseVisualStyleBackColor = True + ' + 'rbPhysical + ' + Me.rbPhysical.AutoSize = True + Me.rbPhysical.Location = New System.Drawing.Point(6, 9) + Me.rbPhysical.Name = "rbPhysical" + Me.rbPhysical.Size = New System.Drawing.Size(140, 17) + Me.rbPhysical.TabIndex = 0 + Me.rbPhysical.TabStop = True + Me.rbPhysical.Text = "Физическо състояние" + Me.rbPhysical.UseVisualStyleBackColor = True + ' + 'btnCalculate + ' + Me.btnCalculate.Location = New System.Drawing.Point(80, 213) + Me.btnCalculate.Name = "btnCalculate" + Me.btnCalculate.Size = New System.Drawing.Size(121, 33) + Me.btnCalculate.TabIndex = 4 + Me.btnCalculate.Text = "Изчисли" + Me.btnCalculate.UseVisualStyleBackColor = True + ' + 'Form1 + ' + Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) + Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font + Me.ClientSize = New System.Drawing.Size(284, 261) + Me.Controls.Add(Me.btnCalculate) + Me.Controls.Add(Me.GroupBox1) + Me.Controls.Add(Me.BirthDay) + Me.Controls.Add(Me.lblBirthDay) + Me.Controls.Add(Me.lblHeader) + Me.Name = "Form1" + Me.Text = "Form1" + Me.GroupBox1.ResumeLayout(False) + Me.GroupBox1.PerformLayout() + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents lblHeader As System.Windows.Forms.Label + Friend WithEvents lblBirthDay As System.Windows.Forms.Label + Friend WithEvents BirthDay As System.Windows.Forms.DateTimePicker + Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox + Friend WithEvents rbIntellectual As System.Windows.Forms.RadioButton + Friend WithEvents rbEmotional As System.Windows.Forms.RadioButton + Friend WithEvents rbPhysical As System.Windows.Forms.RadioButton + Friend WithEvents btnCalculate As System.Windows.Forms.Button + +End Class diff --git a/VB.Net Projects/Biorythm/Biorythm/Form1.resx b/VB.Net Projects/Biorythm/Biorythm/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/VB.Net Projects/Biorythm/Biorythm/Form1.vb b/VB.Net Projects/Biorythm/Biorythm/Form1.vb new file mode 100644 index 0000000..7825f3e --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/Form1.vb @@ -0,0 +1,29 @@ +Public Class Form1 + Dim Coeff As Integer + Dim Status As String + Dim D1 As Date + Dim D2 As Date + Dim Days As Integer + + Private Sub rbPhysical_CheckedChanged(sender As Object, e As EventArgs) Handles rbPhysical.CheckedChanged + Coeff = 23 + Status = "физическо" + End Sub + + Private Sub rbEmotional_CheckedChanged(sender As Object, e As EventArgs) Handles rbEmotional.CheckedChanged + Coeff = 28 + Status = "емоционално" + End Sub + + Private Sub rbIntellectual_CheckedChanged(sender As Object, e As EventArgs) Handles rbIntellectual.CheckedChanged + Coeff = 33 + Status = "интелектуално" + End Sub + + Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click + D1 = BirthDay.Text + D2 = Today + Days = DateDiff(DateInterval.Day, D1, D2) + MsgBox("Вашият процент за " & Status & " състояние е " & Format(Math.Sin(360 * Days / Coeff), "00%"), 0, "Внимание!") + End Sub +End Class diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Application.Designer.vb b/VB.Net Projects/Biorythm/Biorythm/My Project/Application.Designer.vb new file mode 100644 index 0000000..3341ff6 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.Biorythm.Form1 + End Sub + End Class +End Namespace diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Application.myapp b/VB.Net Projects/Biorythm/Biorythm/My Project/Application.myapp new file mode 100644 index 0000000..7b0c597 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Application.myapp @@ -0,0 +1,11 @@ + + + true + Form1 + false + 0 + true + 0 + 0 + true + diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/AssemblyInfo.vb b/VB.Net Projects/Biorythm/Biorythm/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..61fe2ea --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.Designer.vb b/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.Designer.vb new file mode 100644 index 0000000..dfe9748 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Biorythm.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set(ByVal value As Global.System.Globalization.CultureInfo) + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.resx b/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.Designer.vb b/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.Designer.vb new file mode 100644 index 0000000..4cd5314 --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Biorythm.My.MySettings + Get + Return Global.Biorythm.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.settings b/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/VB.Net Projects/Biorythm/Biorythm/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + -- cgit v1.2.3