Skip to content

Commit

Permalink
v0.5 of Cpmag
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Aug 29, 2013
1 parent c5e3365 commit 80dcdd1
Show file tree
Hide file tree
Showing 10 changed files with 553 additions and 419 deletions.
13 changes: 11 additions & 2 deletions Code generator v0.1/Code generator v0.1/Code generator v0.1.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<MapFileExtensions>true</MapFileExtensions>
<PublisherName>Aseem Bansal</PublisherName>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>6</ApplicationRevision>
<ApplicationVersion>0.4.0.%2a</ApplicationVersion>
<ApplicationRevision>12</ApplicationRevision>
<ApplicationVersion>0.5.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down Expand Up @@ -107,13 +107,19 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ApplicationEvents.vb" />
<Compile Include="Contains_Subroutines.vb" />
<Compile Include="Content_Control.vb" />
<Compile Include="Form1.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.vb">
<DependentUpon>Form1.vb</DependentUpon>
<SubType>Form</SubType>
</Compile>
<Compile Include="Glossary_Content_Control.vb" />
<Compile Include="Lesson01_Strings.vb" />
<Compile Include="Lesson02_Strings.vb" />
<Compile Include="Menu_Strings.vb" />
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
Expand All @@ -131,6 +137,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Content_Control.resx">
<DependentUpon>Content_Control.vb</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.vb</DependentUpon>
</EmbeddedResource>
Expand Down
23 changes: 23 additions & 0 deletions Code generator v0.1/Code generator v0.1/Contains_Subroutines.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Module Contains_Subroutines

Public Sub ShowGlossary()
'This subroutine is used to show the GLOSSARY
Form1.Button1.Hide()
Form1.Button2.Hide()
Form1.Label2.Hide()
Form1.Steps.Hide()

Form1.RadioButton1.Hide()
Form1.RadioButton2.Hide()
Form1.RadioButton3.Hide()
Form1.RadioButton4.Hide()
Form1.RadioButton5.Hide()
Form1.RadioButton6.Hide()
Form1.Button3.Text = "Keyword Selected" & Chr(13) & " Show Details"
Form1.Button4.Text = "Using Glossary Complete"
Form1.Button3.Show()
Form1.Button4.Show()
Form1.Lessons.Height = 200
End Sub

End Module
120 changes: 120 additions & 0 deletions Code generator v0.1/Code generator v0.1/Content_Control.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
153 changes: 153 additions & 0 deletions Code generator v0.1/Code generator v0.1/Content_Control.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
Module Content_Control

Public Sub AddLessons()
'This Adds Lessons to the List of Lessons
Form1.Label3.Text = "The Goal Of this lesson is to"
Form1.Lessons.Items.Clear()
Form1.Lessons.Items.Add("Lesson 01")
Form1.Lessons.Items.Add("Lesson 02")
End Sub

Public Sub Button1_Clicked()
'This is used to add Steps to the List of Steps After Selecting Lesson Number
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Form1.Current_Display.Clear()
Form1.Current_Display.Text = String_Lesson01_Goal
Form1.Steps.Items.Clear()
Form1.Steps.Items.Add("Step 01")
Form1.Steps.Items.Add("Step 02")
Form1.Steps.Items.Add("Step 03")
Case "Lesson 02"
Form1.Current_Display.Clear()
Form1.Current_Display.Text = String_Lesson02_Goal
Form1.Display.Clear()
Form1.Steps.Items.Clear()
Form1.Steps.Items.Add("Step 01")
Form1.Steps.Items.Add("Step 02")
End Select
End Sub

Public Sub RadioButton1_Checked()
'This is used to set content of GOALS section
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = String_Lesson01_Step01_Goal
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step02_Goal
Case "Step 03"
Form1.Display.Text = String_Lesson01_Step03_Goal
End Select
Case "Lesson 02"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = ""
Case "Step 02"
Form1.Display.Text = ""
End Select
End Select
End Sub

Public Sub RadioButton2_Checked()
'This is used to set content of INSTRUCTIONS section
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = String_Lesson01_Step01_Instructions
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step02_Instructions
Case "Step 03"
Form1.Display.Text = String_Lesson01_Step03_Instructions
End Select
Case "Lesson 02"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = ""
Case "Step 02"
Form1.Display.Text = ""
End Select
End Select
End Sub

Public Sub RadioButton3_Checked()
'This is used to set content of CODE TO BE COPIED section
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = String_Lesson01_Step01_Code_To_Be_Copied
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step02_Code_To_Be_Copied
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step03_Code_To_Be_Copied
End Select
Case "Lesson 02"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = ""
Case "Step 02"
Form1.Display.Text = ""
End Select
End Select
End Sub

Public Sub RadioButton4_Checked()
'This is used to set content of DETIALS OF THE CODE section
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = String_Lesson01_Step01_Details_Of_The_Code
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step02_Details_Of_The_Code
Case "Step 03"
Form1.Display.Text = String_Lesson01_Step03_Details_Of_The_Code
End Select
Case "Lesson 02"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = ""
Case "Step 02"
Form1.Display.Text = ""
End Select
End Select
End Sub

Public Sub RadioButton5_Checked()
'This is used to set content of FURTHER TECHNICAL DETAILS section
Form1.Label3.Text = "The Goal Of this lesson is to"
Select Case Form1.Lessons.SelectedItem
Case "Lesson 01"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = String_Lesson01_Step01_Further_Technical_Details
Case "Step 02"
Form1.Display.Text = String_Lesson01_Step02_Further_Technical_Details
Case "Step 03"
Form1.Display.Text = String_Lesson01_Step03_Further_Technical_Details
End Select
Case "Lesson 02"
Select Case Form1.Steps.SelectedItem
Case "Step 01"
Form1.Display.Text = ""
Case "Step 02"
Form1.Display.Text = ""
End Select
End Select
End Sub

Public Sub RadioButton6_Checked()
'This is used to set content of NONE section
Form1.Label3.Text = "The Goal Of this lesson is to"
Form1.Display.Clear()
End Sub

End Module
Loading

0 comments on commit 80dcdd1

Please sign in to comment.