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" --- .../Burned Calories/Burned Calories.sln | 20 ++++ .../Burned Calories/Burned Calories/App.config | 6 + .../Burned Calories/Burned Calories.vbproj | 127 +++++++++++++++++++++ .../Burned Calories/Burned Calories.vbproj.user | 3 + .../Burned Calories/Form1.Designer.vb | 114 ++++++++++++++++++ .../Burned Calories/Burned Calories/Form1.resx | 120 +++++++++++++++++++ .../Burned Calories/Burned Calories/Form1.vb | 31 +++++ .../My Project/Application.Designer.vb | 38 ++++++ .../Burned Calories/My Project/Application.myapp | 11 ++ .../Burned Calories/My Project/AssemblyInfo.vb | 35 ++++++ .../My Project/Resources.Designer.vb | 62 ++++++++++ .../Burned Calories/My Project/Resources.resx | 117 +++++++++++++++++++ .../My Project/Settings.Designer.vb | 73 ++++++++++++ .../Burned Calories/My Project/Settings.settings | 7 ++ 14 files changed, 764 insertions(+) create mode 100644 VB.Net Projects/Burned Calories/Burned Calories.sln create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/App.config create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj.user create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/Form1.Designer.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/Form1.resx create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/Form1.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.Designer.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.myapp create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/AssemblyInfo.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Resources.Designer.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Resources.resx create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.Designer.vb create mode 100644 VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.settings (limited to 'VB.Net Projects/Burned Calories') diff --git a/VB.Net Projects/Burned Calories/Burned Calories.sln b/VB.Net Projects/Burned Calories/Burned Calories.sln new file mode 100644 index 0000000..5ce9a13 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Burned Calories", "Burned Calories\Burned Calories.vbproj", "{DC2BE1E8-AAF3-4010-AE25-17657A898807}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DC2BE1E8-AAF3-4010-AE25-17657A898807}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC2BE1E8-AAF3-4010-AE25-17657A898807}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC2BE1E8-AAF3-4010-AE25-17657A898807}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC2BE1E8-AAF3-4010-AE25-17657A898807}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/VB.Net Projects/Burned Calories/Burned Calories/App.config b/VB.Net Projects/Burned Calories/Burned Calories/App.config new file mode 100644 index 0000000..49c50e0 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj b/VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj new file mode 100644 index 0000000..8720f2a --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj @@ -0,0 +1,127 @@ + + + + + Debug + AnyCPU + {DC2BE1E8-AAF3-4010-AE25-17657A898807} + WinExe + Burned_Calories.My.MyApplication + Burned_Calories + Burned Calories + 512 + WindowsForms + v4.5 + + + AnyCPU + true + full + true + true + bin\Debug\ + Burned Calories.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + Burned Calories.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/Burned Calories/Burned Calories/Burned Calories.vbproj.user b/VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj.user new file mode 100644 index 0000000..695b5c7 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/Burned Calories.vbproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/VB.Net Projects/Burned Calories/Burned Calories/Form1.Designer.vb b/VB.Net Projects/Burned Calories/Burned Calories/Form1.Designer.vb new file mode 100644 index 0000000..eddcab3 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/Form1.Designer.vb @@ -0,0 +1,114 @@ + _ +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.lblTime = New System.Windows.Forms.Label() + Me.lblSport = New System.Windows.Forms.Label() + Me.txtTime = New System.Windows.Forms.TextBox() + Me.cbSport = New System.Windows.Forms.ComboBox() + Me.btnCalculate = New System.Windows.Forms.Button() + Me.SuspendLayout() + ' + 'lblHeader + ' + Me.lblHeader.AutoSize = True + Me.lblHeader.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(204, Byte)) + Me.lblHeader.ForeColor = System.Drawing.Color.RoyalBlue + Me.lblHeader.Location = New System.Drawing.Point(5, 9) + Me.lblHeader.Name = "lblHeader" + Me.lblHeader.Size = New System.Drawing.Size(275, 50) + Me.lblHeader.TabIndex = 0 + Me.lblHeader.Text = "Изчисляване на изгорени " & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "калории при спорт" + Me.lblHeader.TextAlign = System.Drawing.ContentAlignment.TopCenter + ' + 'lblTime + ' + Me.lblTime.AutoSize = True + Me.lblTime.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!) + Me.lblTime.Location = New System.Drawing.Point(12, 98) + Me.lblTime.Name = "lblTime" + Me.lblTime.Size = New System.Drawing.Size(118, 18) + Me.lblTime.TabIndex = 1 + Me.lblTime.Text = "Време в минути" + ' + 'lblSport + ' + Me.lblSport.AutoSize = True + Me.lblSport.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.0!) + Me.lblSport.Location = New System.Drawing.Point(185, 98) + Me.lblSport.Name = "lblSport" + Me.lblSport.Size = New System.Drawing.Size(51, 18) + Me.lblSport.TabIndex = 2 + Me.lblSport.Text = "Спорт" + ' + 'txtTime + ' + Me.txtTime.Location = New System.Drawing.Point(29, 131) + Me.txtTime.Name = "txtTime" + Me.txtTime.Size = New System.Drawing.Size(85, 20) + Me.txtTime.TabIndex = 3 + ' + 'cbSport + ' + Me.cbSport.FormattingEnabled = True + Me.cbSport.Items.AddRange(New Object() {"Аеробика", "Боулинг", "Волейбол", "Тенис на корт", "Футбол"}) + Me.cbSport.Location = New System.Drawing.Point(161, 130) + Me.cbSport.Name = "cbSport" + Me.cbSport.Size = New System.Drawing.Size(99, 21) + Me.cbSport.TabIndex = 4 + ' + 'btnCalculate + ' + Me.btnCalculate.Location = New System.Drawing.Point(100, 180) + Me.btnCalculate.Name = "btnCalculate" + Me.btnCalculate.Size = New System.Drawing.Size(85, 32) + Me.btnCalculate.TabIndex = 5 + 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, 229) + Me.Controls.Add(Me.btnCalculate) + Me.Controls.Add(Me.cbSport) + Me.Controls.Add(Me.txtTime) + Me.Controls.Add(Me.lblSport) + Me.Controls.Add(Me.lblTime) + Me.Controls.Add(Me.lblHeader) + Me.Name = "Form1" + Me.Text = "Калкулатор за калории" + Me.ResumeLayout(False) + Me.PerformLayout() + + End Sub + Friend WithEvents lblHeader As System.Windows.Forms.Label + Friend WithEvents lblTime As System.Windows.Forms.Label + Friend WithEvents lblSport As System.Windows.Forms.Label + Friend WithEvents txtTime As System.Windows.Forms.TextBox + Friend WithEvents cbSport As System.Windows.Forms.ComboBox + Friend WithEvents btnCalculate As System.Windows.Forms.Button + +End Class diff --git a/VB.Net Projects/Burned Calories/Burned Calories/Form1.resx b/VB.Net Projects/Burned Calories/Burned Calories/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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/Burned Calories/Burned Calories/Form1.vb b/VB.Net Projects/Burned Calories/Burned Calories/Form1.vb new file mode 100644 index 0000000..b775f7f --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/Form1.vb @@ -0,0 +1,31 @@ +Public Class Form1 + Dim K As Double + Private Sub txtTime_TextChanged(sender As Object, e As EventArgs) Handles txtTime.TextChanged + K = Val(txtTime.Text) / 60 + End Sub + Private Sub cbSport_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cbSport.SelectedIndexChanged + + + Select Case cbSport.Text + Case "Аеробика" + K *= 500 + Case "Боулинг" + K *= 200 + Case "Волейбол" + K *= 220 + Case "Тенис на корт" + K *= 540 + Case "Футбол" + K *= 420 + End Select + + End Sub + + Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click + MsgBox("Чрез " & cbSport.Text & " Вие ще изгорите " & K & " калории за " & txtTime.Text & " минути", 0, "Внимание!") + + K = 0 + cbSport.Text = vbNullString + txtTime.Text = vbNullString + End Sub +End Class diff --git a/VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.Designer.vb b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.Designer.vb new file mode 100644 index 0000000..c14d360 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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.Burned_Calories.Form1 + End Sub + End Class +End Namespace diff --git a/VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.myapp b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.myapp new file mode 100644 index 0000000..7b0c597 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Application.myapp @@ -0,0 +1,11 @@ + + + true + Form1 + false + 0 + true + 0 + 0 + true + diff --git a/VB.Net Projects/Burned Calories/Burned Calories/My Project/AssemblyInfo.vb b/VB.Net Projects/Burned Calories/Burned Calories/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..f0e4d7a --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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/Burned Calories/Burned Calories/My Project/Resources.Designer.vb b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Resources.Designer.vb new file mode 100644 index 0000000..d37d19c --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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("Burned_Calories.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/Burned Calories/Burned Calories/My Project/Resources.resx b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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/Burned Calories/Burned Calories/My Project/Settings.Designer.vb b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.Designer.vb new file mode 100644 index 0000000..14e5ede --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/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.Burned_Calories.My.MySettings + Get + Return Global.Burned_Calories.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.settings b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.settings new file mode 100644 index 0000000..377f56d --- /dev/null +++ b/VB.Net Projects/Burned Calories/Burned Calories/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + -- cgit v1.2.3