diff --git a/.gitignore b/.gitignore
index 566550e..d64c1ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -279,3 +279,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
+Example1/Example1.sln
diff --git a/Example1/Example1.sln b/Example1/Example1.sln
deleted file mode 100644
index 4b7ea51..0000000
--- a/Example1/Example1.sln
+++ /dev/null
@@ -1,94 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example1", "Example1\Example1.csproj", "{AA5701F3-382B-42D2-B34A-21FEFF70F339}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet1", "Worksheet1\Worksheet1.csproj", "{A290B51E-78E8-4E48-A55F-D5BC3659ABD3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example2", "Example2\Example2.csproj", "{5C36B013-518D-423F-9B29-2B3843B9FC7A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example3", "Example3\Example3.csproj", "{69A7DF2F-7234-4EA5-97E5-750AAC0532DE}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RectangleExample", "RectangleExample\RectangleExample.csproj", "{C96E587F-58A4-4311-A040-D037929BE616}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet4", "Worksheet4\Worksheet4.csproj", "{45E69B23-084A-4805-9CC2-83B0841861A9}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet2", "Worksheet2\Worksheet2.csproj", "{2FB6069C-58E7-48D4-AE44-D7641A07DDE3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example4", "Example4\Example4.csproj", "{B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example5", "Example5\Example5.csproj", "{5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example6", "Example6\Example6.csproj", "{EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example7", "Example7\Example7.csproj", "{0FB5260C-6776-4614-BF36-05F82896A25C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet5", "Worksheet5\Worksheet5.csproj", "{6272508D-E762-4E97-903F-6BA162258EE2}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet6", "Worksheet6\Worksheet6.csproj", "{2752D441-4B4D-4952-81FD-BF13CA3D3198}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {AA5701F3-382B-42D2-B34A-21FEFF70F339}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {AA5701F3-382B-42D2-B34A-21FEFF70F339}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {AA5701F3-382B-42D2-B34A-21FEFF70F339}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {AA5701F3-382B-42D2-B34A-21FEFF70F339}.Release|Any CPU.Build.0 = Release|Any CPU
- {A290B51E-78E8-4E48-A55F-D5BC3659ABD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A290B51E-78E8-4E48-A55F-D5BC3659ABD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A290B51E-78E8-4E48-A55F-D5BC3659ABD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A290B51E-78E8-4E48-A55F-D5BC3659ABD3}.Release|Any CPU.Build.0 = Release|Any CPU
- {5C36B013-518D-423F-9B29-2B3843B9FC7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5C36B013-518D-423F-9B29-2B3843B9FC7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5C36B013-518D-423F-9B29-2B3843B9FC7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5C36B013-518D-423F-9B29-2B3843B9FC7A}.Release|Any CPU.Build.0 = Release|Any CPU
- {69A7DF2F-7234-4EA5-97E5-750AAC0532DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {69A7DF2F-7234-4EA5-97E5-750AAC0532DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {69A7DF2F-7234-4EA5-97E5-750AAC0532DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {69A7DF2F-7234-4EA5-97E5-750AAC0532DE}.Release|Any CPU.Build.0 = Release|Any CPU
- {C96E587F-58A4-4311-A040-D037929BE616}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C96E587F-58A4-4311-A040-D037929BE616}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C96E587F-58A4-4311-A040-D037929BE616}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C96E587F-58A4-4311-A040-D037929BE616}.Release|Any CPU.Build.0 = Release|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Release|Any CPU.Build.0 = Release|Any CPU
- {2FB6069C-58E7-48D4-AE44-D7641A07DDE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2FB6069C-58E7-48D4-AE44-D7641A07DDE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2FB6069C-58E7-48D4-AE44-D7641A07DDE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2FB6069C-58E7-48D4-AE44-D7641A07DDE3}.Release|Any CPU.Build.0 = Release|Any CPU
- {B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}.Release|Any CPU.Build.0 = Release|Any CPU
- {5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}.Release|Any CPU.Build.0 = Release|Any CPU
- {EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}.Release|Any CPU.Build.0 = Release|Any CPU
- {0FB5260C-6776-4614-BF36-05F82896A25C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0FB5260C-6776-4614-BF36-05F82896A25C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0FB5260C-6776-4614-BF36-05F82896A25C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0FB5260C-6776-4614-BF36-05F82896A25C}.Release|Any CPU.Build.0 = Release|Any CPU
- {6272508D-E762-4E97-903F-6BA162258EE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6272508D-E762-4E97-903F-6BA162258EE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6272508D-E762-4E97-903F-6BA162258EE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6272508D-E762-4E97-903F-6BA162258EE2}.Release|Any CPU.Build.0 = Release|Any CPU
- {2752D441-4B4D-4952-81FD-BF13CA3D3198}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2752D441-4B4D-4952-81FD-BF13CA3D3198}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2752D441-4B4D-4952-81FD-BF13CA3D3198}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2752D441-4B4D-4952-81FD-BF13CA3D3198}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/Example1/Example1/App.config b/Example1/Example1/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Example1/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example1/Example1.csproj b/Example1/Example1/Example1.csproj
deleted file mode 100644
index 1b8f480..0000000
--- a/Example1/Example1/Example1.csproj
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {AA5701F3-382B-42D2-B34A-21FEFF70F339}
- Exe
- Properties
- Example1
- Example1
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example1/MyExample1.cs b/Example1/Example1/MyExample1.cs
deleted file mode 100644
index 3e35882..0000000
--- a/Example1/Example1/MyExample1.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example1
-{
- class MyExample1
- {
-
-
- static void Main(string[] args)
- {
- //creating a string variable
- string myHello = "Hello World";
-
- string myName = "Gerard Said";
- //therefore, myHello is a VARIABLE of type string
-
-
- //this code saves my age
- int age = 34;
-
- //temperature
- float currentTemperature = 11.65f;
-
-
- //the code below writes hello world in the console
- Console.WriteLine(myHello + "\n " + myName + "\n " + age + "\n "+currentTemperature);
-
- //ask the user his name
- Console.WriteLine("What is your name?");
-
- //input the name
- myName = Console.ReadLine();
-
- Console.WriteLine("What is your age?");
-
- //if the user types '18', the string is converted to the integer 18
- age = Convert.ToInt32(Console.ReadLine());
-
- Console.WriteLine("What is the current temperature?");
-
- //once the user enters a float value, it is converted to a float value
- currentTemperature = float.Parse(Console.ReadLine());
-
- Console.WriteLine(myHello + "\n " + myName + "\n " + age + "\n " + currentTemperature);
-
- //conditional statements
- if (currentTemperature < 10f)
- {
- Console.WriteLine("It is very cold");
- }
-
- if (currentTemperature > 30f)
- {
- Console.WriteLine("It is very warm");
- }
-
-
- //modify your square area application such that if the area of the square is less
- //than 100, it will write 'your square is very small'
- //and if the area is greater than 1000 it will write 'your square is very large'
-
- //finally modify your square area application to choose if you are checking the
- //area of a square or a rectangle. If it is a square calculate normally if it is
- //a rectangle you need to input length and breadth and calculate using length * breadth
-
-
-
- //the code below waits for me to press enter
- Console.ReadLine();
-
-
- }
- }
-}
diff --git a/Example1/Example1/Properties/AssemblyInfo.cs b/Example1/Example1/Properties/AssemblyInfo.cs
deleted file mode 100644
index b4c2da6..0000000
--- a/Example1/Example1/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example1")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Example1")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("642c4b81-9d9d-462c-8914-bd6fafa2ca85")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example2/Example2.csproj b/Example1/Example2/Example2.csproj
deleted file mode 100644
index 464e75a..0000000
--- a/Example1/Example2/Example2.csproj
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {5C36B013-518D-423F-9B29-2B3843B9FC7A}
- Exe
- Properties
- Example2
- Example2
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example2/Program.cs b/Example1/Example2/Program.cs
deleted file mode 100644
index 8ca9982..0000000
--- a/Example1/Example2/Program.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example2
-{
- class TheProgram
- {
- static void Main(string[] args)
- {
- //this is an example of different loops
- int countDown = 5;
-
-
- //check if you can continue at the beginning
- //this loop can happen 0 or more times
- while(countDown>0)
- {
- Console.WriteLine(countDown);
- countDown--;
- }
-
- //this can happen 1 or more times
- countDown = 5;
-
- do
- {
- Console.WriteLine(countDown);
- countDown--;
- } while (countDown > 0);
-
-
- //the famous for loop
- for (int count = 5; count > 0;count--)
- {
- Console.WriteLine(count);
- }
-
- int[] myNumbers = {6,2,1,8,9};
-
- //myNumbers[0] = 6
- foreach (int num in myNumbers)
- {
- Console.WriteLine(num);
- }
-
- string[] daysOfWeek = { "Monday", "Tuesday", "Thursday" };
-
- foreach (string dayOfLesson in daysOfWeek)
- {
- Console.WriteLine(dayOfLesson);
- }
-
- for (int count1 = 0; count1 < 5;count1++ )
- {
- for(int count2=0;count2<=count1;count2++)
- {
- Console.Write("X");
- }
- Console.WriteLine();
- }
-
- int[] junkNumbers = { 5, 6, 32, 3, 1 };
-
- foreach (int n in junkNumbers)
- {
- Console.WriteLine(n);
- }
-
-
- int[] myArrayOfNumbers = new int[5];
-
-
-
- //small to big
- Array.Sort(junkNumbers);
-
- //big to small
- Array.Reverse(junkNumbers);
-
- foreach (int n in junkNumbers)
- {
- Console.WriteLine(n);
- }
-
-
- Console.ReadLine();
-
-
- }
- }
-}
diff --git a/Example1/Example2/Properties/AssemblyInfo.cs b/Example1/Example2/Properties/AssemblyInfo.cs
deleted file mode 100644
index c4ddb00..0000000
--- a/Example1/Example2/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example2")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Example2")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("39053743-3ecc-4268-b6dd-04ccc3eb71bb")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example3/App.config b/Example1/Example3/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Example3/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example3/Classroom.cs b/Example1/Example3/Classroom.cs
deleted file mode 100644
index 59b6953..0000000
--- a/Example1/Example3/Classroom.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example3
-{
- class Classroom
- {
- //attributes which can be set
- public string classroomname;
- public int numberofstudents;
- public int numberofcomputers;
- string[] studentnames;
-
- //a public method
- public string getClassroomInfo()
- {
- return classroomname + " " + numberofstudents + " " + numberofcomputers + "\n" + getAllStudentNames();
- }
-
- //constructor
- public Classroom()
- {
- classroomname = "/";
- numberofstudents = 0;
- numberofcomputers = 0;
- studentnames = new string[5];
- }
-
- public Classroom(int nstudents,int ncomputers,string cname)
- {
- this.numberofstudents = nstudents;
- this.numberofcomputers = ncomputers;
- this.classroomname = cname;
- this.studentnames = new string[5];
- }
-
- public string getAllStudentNames()
- {
- string output = "";
- foreach(string sname in studentnames)
- {
- output += sname + "\n";
- }
- return output;
- }
-
- //updating the class name via parameter
- public void updateClassroomName(string newName)
- {
- this.classroomname = newName;
- }
-
- public void updateStudentNames(string[] studentNames)
- {
- this.studentnames = studentNames;
- }
-
- //update the number of students via parameter
- public bool updateNumberOfStudents(int numStudents)
- {
- if (numStudents>0)
- {
- this.numberofstudents = numStudents;
- return true;
- }
- return false;
- }
-
- public int totalstudentsandcomputers()
- {
- return numberofstudents + numberofcomputers;
- }
-
- }
-}
diff --git a/Example1/Example3/Example3.csproj b/Example1/Example3/Example3.csproj
deleted file mode 100644
index b6b89e1..0000000
--- a/Example1/Example3/Example3.csproj
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {69A7DF2F-7234-4EA5-97E5-750AAC0532DE}
- Exe
- Properties
- Example3
- Example3
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example3/Program.cs b/Example1/Example3/Program.cs
deleted file mode 100644
index a261d5b..0000000
--- a/Example1/Example3/Program.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example3
-{
- class Program
- {
- static void Main(string[] args)
- {
- //1. an Object is an INSTANCE of a class
- //2. all Objects are INSTANCED using a constructor
- // and the NEW keyword
-
- //constructing an object
-
-
- Classroom myClassroom1 = new Classroom();
-
- myClassroom1.classroomname = "L113";
- myClassroom1.numberofcomputers = 25;
- myClassroom1.numberofstudents = 5;
-
- //Console.WriteLine(myClassroom.classroomname);
- Console.WriteLine(myClassroom1.getClassroomInfo());
- Console.WriteLine(myClassroom1.totalstudentsandcomputers());
-
- myClassroom1.updateClassroomName("L116");
-
- //the number of students cannot be negative. UpdateNumberOfStudents
- //returns FALSE if that is the case and the value is NOT updated
- if (myClassroom1.updateNumberOfStudents(-1))
- {
- Console.WriteLine("Updated Successfully");
- }
-
- string[] studentnames = { "Gerry", "Test", "Test2" };
- myClassroom1.updateStudentNames(studentnames);
-
- Console.WriteLine(myClassroom1.getClassroomInfo());
-
- Classroom myClassroom2 = new Classroom();
-
- myClassroom2.classroomname = "L115";
- myClassroom2.numberofcomputers = 15;
- myClassroom2.numberofstudents = 0;
-
- //Console.WriteLine(myClassroom.classroomname);
- Console.WriteLine(myClassroom2.getClassroomInfo());
- Console.WriteLine(myClassroom2.totalstudentsandcomputers());
-
-
- Classroom myClassroom3 = new Classroom();
- Console.WriteLine(myClassroom3.getClassroomInfo());
- Console.WriteLine(myClassroom3.totalstudentsandcomputers());
-
-
-
- Classroom myClassroom4 = new Classroom(0, 25, "L112");
-
-
- string[] studentsinc4 = { "Joe", "Peter", "Simon" };
- myClassroom4.updateStudentNames(studentsinc4);
-
- Classroom[] thisCorridor = new Classroom[4];
-
- thisCorridor[0] = myClassroom1;
- thisCorridor[1] = myClassroom2;
- thisCorridor[2] = myClassroom3;
- thisCorridor[3] = myClassroom4;
-
-
- foreach (Classroom c in thisCorridor)
- {
- Console.WriteLine(c.getClassroomInfo());
- }
-
- //Console.WriteLine(myClassroom4.getClassroomInfo());
- //Console.WriteLine(myClassroom4.totalstudentsandcomputers());
-
-
- Console.ReadLine();
-
- //Create a method that constructs a rectangle taking the width
- //and the height as 2 parameters
-
- //Create a method that returns the perimeter of the rectangle
- //based on L+B x 2
-
- //Create a method which uses for loops to draw a representation
- //of the rectangle using Xs. Width is equal to the width in characters
- //and height. Method returns a string and is called from program.cs
-
- }
- }
-}
diff --git a/Example1/Example3/Properties/AssemblyInfo.cs b/Example1/Example3/Properties/AssemblyInfo.cs
deleted file mode 100644
index 2e8f0d8..0000000
--- a/Example1/Example3/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example3")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Example3")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6debffd4-5e91-4317-8edb-8ac358044cb5")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example4/App.config b/Example1/Example4/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Example4/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example4/Example4.csproj b/Example1/Example4/Example4.csproj
deleted file mode 100644
index 90768df..0000000
--- a/Example1/Example4/Example4.csproj
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {B5EB9DF4-7686-465A-8CF6-7FA0514A86CC}
- Exe
- Properties
- Example4
- Example4
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example4/Program.cs b/Example1/Example4/Program.cs
deleted file mode 100644
index c05ccc8..0000000
--- a/Example1/Example4/Program.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example4
-{
- class Program
- {
- static void Main(string[] args)
- {
-
-
- Console.WriteLine("How many random numbers do you want?");
- int numberOfNumbers = Convert.ToInt32(Console.ReadLine());
-
- //create a new list of size numberOfNumbers
- List allTheNumbers = new List();
-
- //if I input 100 in number of numbers, I should have 100
- //random numbers in the list, because the list is DYNAMIC
- for (int counter = 0; counter < numberOfNumbers;counter++ )
- {
-
- RandomNumber n = new RandomNumber(0, 10,counter);
-
- allTheNumbers.Add(n);
-
-
- }
-
- allTheNumbers.Sort();
-
- RandomNumber[] someNumbers = new RandomNumber[4];
-
- someNumbers[0] = new RandomNumber(0,10,50);
- someNumbers[1] = new RandomNumber(0,10,53);
- someNumbers[2] = new RandomNumber(0,10,54);
- someNumbers[3] = new RandomNumber(0,10,57);
-
- //add 4 values at the same time
- allTheNumbers.AddRange(someNumbers);
-
- //output from the List to a fixed size array of the size of the list
- RandomNumber[] outputArray = allTheNumbers.ToArray();
-
- List anotherEmptyList = new List();
-
- anotherEmptyList.AddRange(someNumbers);
-
- //add the other empty list to all the numbers. Add the values to the end
- allTheNumbers.Concat(anotherEmptyList);
-
-
-
- //remove the first element of the list
- allTheNumbers.RemoveAt(0);
-
- //remove all the elements in anotheremptylist
- anotherEmptyList = new List();
- //small to large numbers
- allTheNumbers.Sort();
-
- //large to small numbers
- allTheNumbers.Reverse();
-
-
-
-
-
- //output here
- foreach(RandomNumber r in allTheNumbers)
- {
- Console.WriteLine(r);
- }
- Console.ReadLine();
- //all the different random numbers
-
-
- foreach (RandomNumber r in allTheNumbers)
- {
- Console.WriteLine(r);
- }
-
- Console.ReadLine();
-
- }
- }
-}
diff --git a/Example1/Example4/Properties/AssemblyInfo.cs b/Example1/Example4/Properties/AssemblyInfo.cs
deleted file mode 100644
index 077e246..0000000
--- a/Example1/Example4/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example4")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Example4")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0da9cdee-64de-4531-9e78-7925e73553dc")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example4/RandomNumber.cs b/Example1/Example4/RandomNumber.cs
deleted file mode 100644
index 0bf18aa..0000000
--- a/Example1/Example4/RandomNumber.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example4
-{
- class RandomNumber:IComparable
- {
- //attribute of random number
- int number;
-
- Random generator;
-
-
- public int Number
- {
- get { return number; }
- set { number = value; }
- }
-
- //create a new random number
- public RandomNumber(int seed)
- {
- //the next random number
- generator = new Random(seed);
- Number = generator.Next();
- }
-
- //create a new random number between two values
- public RandomNumber(int min,int max,int seed)
- {
- generator = new Random(seed);
- Number = generator.Next(min,max);
- }
-
- //update the number in the instance
- public void updateNumber(int min,int max)
- {
-
- Number = generator.Next(min, max);
- }
-
- public override string ToString()
- {
- return Number.ToString();
- }
-
-
- public int CompareTo(object obj)
- {
- RandomNumber otherNumber = (RandomNumber)obj;
- return this.number.CompareTo(otherNumber.number);
- }
-
-
-
-
-
-
- }
-}
diff --git a/Example1/Example5/App.config b/Example1/Example5/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Example5/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example5/Contact.cs b/Example1/Example5/Contact.cs
deleted file mode 100644
index d8270aa..0000000
--- a/Example1/Example5/Contact.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example5
-{
- class Contact:IComparable
- {
- string name;
-
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
- string telnumber;
-
- public string Telnumber
- {
- get { return telnumber; }
- set { telnumber = value; }
- }
-
- public Contact(string n,string tnumber)
- {
- name = n;
- telnumber = tnumber;
- }
-
- public int CompareTo(object obj)
- {
- Contact otherContact = (Contact)obj;
- return this.name.CompareTo(otherContact.name);
- }
- }
-}
diff --git a/Example1/Example5/Example5.csproj b/Example1/Example5/Example5.csproj
deleted file mode 100644
index f3b2113..0000000
--- a/Example1/Example5/Example5.csproj
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {5103AD09-6BC0-4400-8EE1-CFB7FFB1B9DF}
- Exe
- Properties
- Example5
- Example5
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example5/Program.cs b/Example1/Example5/Program.cs
deleted file mode 100644
index 734014f..0000000
--- a/Example1/Example5/Program.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example5
-{
- class Program
- {
- static void Main(string[] args)
- {
- List phoneBook = new List();
-
- Contact p1 = new Contact("Gerry", "123");
- Contact p2 = new Contact("Test", "456");
- Contact p3 = new Contact("Test3", "789");
- //add one contact
- phoneBook.Add(p1);
-
- //add two contacts
- phoneBook.AddRange(new Contact[]{p2,p3});
-
- //remove the first contact
- //phoneBook.RemoveAt(0);
-
-
-
- //find the contact in the List, based on the compareTo method
- Contact ctofind = new Contact("Gerry", "");
-
- //write
- Console.WriteLine(phoneBook.BinarySearch(ctofind));
-
-
-
-
-
- foreach (Contact p in phoneBook)
- Console.WriteLine(p.Name + " " + p.Telnumber);
-
- Console.ReadLine();
- }
- }
-}
diff --git a/Example1/Example5/Properties/AssemblyInfo.cs b/Example1/Example5/Properties/AssemblyInfo.cs
deleted file mode 100644
index 33188fd..0000000
--- a/Example1/Example5/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example5")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Example5")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("07a13b1d-27d4-4fbc-ae92-cd685e87b99f")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example6/App.config b/Example1/Example6/App.config
deleted file mode 100644
index d1428ad..0000000
--- a/Example1/Example6/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/Example1/Example6/Program.cs b/Example1/Example6/Program.cs
deleted file mode 100644
index f72965a..0000000
--- a/Example1/Example6/Program.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Example6
-{
-
- class Program
- {
- static void Main(string[] args)
- {
- //using a List of type int
- List ListOfNumbers = new List();
- //instantiate random number generator
- Random randomGen = new Random();
-
-
- //create a list of 10 random numbers
- for(int i=0;i<10;i++)
- {
- int randomNumber = randomGen.Next(1, 10);
- ListOfNumbers.Add(randomNumber);
- }
-
-
-
-
- //output
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //list method examples
-
- //sort
- ListOfNumbers.Sort();
-
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //reverse
- ListOfNumbers.Reverse();
-
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //get distinct elements into another list
- List distinctList = ListOfNumbers.Distinct().ToList();
-
- outputNumbers(distinctList);
- Console.ReadLine();
-
- //concatenate another list to the first list
- ListOfNumbers.Concat(distinctList);
-
- outputNumbers(distinctList);
- Console.ReadLine();
-
- //find a value which is equivalent to the value entered. returns the value
- Console.WriteLine(ListOfNumbers.Find(n => n == 8));
- Console.ReadLine();
-
- //for multiple values. returns a list of the values
- outputNumbers(ListOfNumbers.FindAll(n => n == 8));
- Console.ReadLine();
-
- //gets the index of the value you are searching for
- Console.WriteLine(ListOfNumbers.FindIndex(n => n == 8));
- Console.ReadLine();
-
- //gets the biggest number
- Console.WriteLine(ListOfNumbers.Max());
- Console.ReadLine();
-
- //gets the smallest number
- Console.WriteLine(ListOfNumbers.Min());
- Console.ReadLine();
-
-
- }
-
- static void outputNumbers(List theNumbers)
- {
- foreach (int n in theNumbers)
- Console.WriteLine(n);
- }
- }
-}
diff --git a/Example1/Example7/App.config b/Example1/Example7/App.config
deleted file mode 100644
index d1428ad..0000000
--- a/Example1/Example7/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/Example1/Example7/Example7.csproj b/Example1/Example7/Example7.csproj
deleted file mode 100644
index 28b5c54..0000000
--- a/Example1/Example7/Example7.csproj
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {0FB5260C-6776-4614-BF36-05F82896A25C}
- Exe
- Properties
- Example7
- Example7
- v4.5
- 512
- true
-
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Form
-
-
- RandomNumbersForm.cs
-
-
-
-
-
-
-
- RandomNumbersForm.cs
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example7/Program.cs b/Example1/Example7/Program.cs
deleted file mode 100644
index 4cc32c9..0000000
--- a/Example1/Example7/Program.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Example7
-{
-
- class Program
- {
-
-
-
- public static void updateRandomNumbers(List ListOfNumbers)
- {
- Random randomGen = new Random();
- //create a list of 10 random numbers
-
- ListOfNumbers.Clear();
-
- for (int i = 0; i < 10; i++)
- {
- int randomNumber = randomGen.Next(1, 10);
- ListOfNumbers.Add(randomNumber);
- }
- }
-
- [STAThread]
- static void Main(string[] args)
- {
-
-
-
- //using a List of type int
- List ListOfNumbers = new List();
- //instantiate random number generator
-
-
- updateRandomNumbers(ListOfNumbers);
-
-
-
-
- RandomNumbersForm form = new RandomNumbersForm(ListOfNumbers);
- Application.Run(form);
-
-
-
- //output
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //list method examples
-
- //sort
- ListOfNumbers.Sort();
-
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //reverse
- ListOfNumbers.Reverse();
-
- outputNumbers(ListOfNumbers);
- Console.ReadLine();
-
- //get distinct elements into another list
- List distinctList = ListOfNumbers.Distinct().ToList();
-
- outputNumbers(distinctList);
- Console.ReadLine();
-
- //concatenate another list to the first list
- ListOfNumbers.Concat(distinctList);
-
- outputNumbers(distinctList);
- Console.ReadLine();
-
- //find a value which is equivalent to the value entered. returns the value
- Console.WriteLine(ListOfNumbers.Find(n => n == 8));
- Console.ReadLine();
-
- //for multiple values. returns a list of the values
- outputNumbers(ListOfNumbers.FindAll(n => n == 8));
- Console.ReadLine();
-
- //gets the index of the value you are searching for
- Console.WriteLine(ListOfNumbers.FindIndex(n => n == 8));
-
-
- Console.ReadLine();
-
- //gets the biggest number
- Console.WriteLine(ListOfNumbers.Max());
- Console.ReadLine();
-
- //gets the smallest number
- Console.WriteLine(ListOfNumbers.Min());
- Console.ReadLine();
-
-
- }
-
- static void outputNumbers(List theNumbers)
- {
- foreach (int n in theNumbers)
- Console.WriteLine(n);
- }
- }
-}
diff --git a/Example1/Example7/Properties/AssemblyInfo.cs b/Example1/Example7/Properties/AssemblyInfo.cs
deleted file mode 100644
index c4b1f92..0000000
--- a/Example1/Example7/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Example7")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Example7")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0fb5260c-6776-4614-bf36-05f82896a25c")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Example7/RandomNumbersForm.Designer.cs b/Example1/Example7/RandomNumbersForm.Designer.cs
deleted file mode 100644
index 4340806..0000000
--- a/Example1/Example7/RandomNumbersForm.Designer.cs
+++ /dev/null
@@ -1,146 +0,0 @@
-namespace Example7
-{
- partial class RandomNumbersForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.dataGridView1 = new System.Windows.Forms.DataGridView();
- this.panel1 = new System.Windows.Forms.Panel();
- this.distinctButton = new System.Windows.Forms.Button();
- this.reverseButton = new System.Windows.Forms.Button();
- this.sortButton = new System.Windows.Forms.Button();
- this.generateButton = new System.Windows.Forms.Button();
- this.tableLayoutPanel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
- this.panel1.SuspendLayout();
- this.SuspendLayout();
- //
- // tableLayoutPanel1
- //
- this.tableLayoutPanel1.ColumnCount = 1;
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 0);
- this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 1);
- this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12);
- this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.tableLayoutPanel1.RowCount = 2;
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 68.25397F));
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 31.74603F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(260, 237);
- this.tableLayoutPanel1.TabIndex = 0;
- //
- // dataGridView1
- //
- this.dataGridView1.AllowUserToAddRows = false;
- this.dataGridView1.AllowUserToDeleteRows = false;
- this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dataGridView1.Location = new System.Drawing.Point(3, 3);
- this.dataGridView1.Name = "dataGridView1";
- this.dataGridView1.ReadOnly = true;
- this.dataGridView1.Size = new System.Drawing.Size(254, 155);
- this.dataGridView1.TabIndex = 0;
- //
- // panel1
- //
- this.panel1.Controls.Add(this.distinctButton);
- this.panel1.Controls.Add(this.reverseButton);
- this.panel1.Controls.Add(this.sortButton);
- this.panel1.Controls.Add(this.generateButton);
- this.panel1.Location = new System.Drawing.Point(3, 164);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(254, 70);
- this.panel1.TabIndex = 1;
- //
- // distinctButton
- //
- this.distinctButton.Location = new System.Drawing.Point(165, 32);
- this.distinctButton.Name = "distinctButton";
- this.distinctButton.Size = new System.Drawing.Size(75, 23);
- this.distinctButton.TabIndex = 3;
- this.distinctButton.Text = "Distinct";
- this.distinctButton.UseVisualStyleBackColor = true;
- this.distinctButton.Click += new System.EventHandler(this.distinctButton_Click);
- //
- // reverseButton
- //
- this.reverseButton.Location = new System.Drawing.Point(165, 3);
- this.reverseButton.Name = "reverseButton";
- this.reverseButton.Size = new System.Drawing.Size(75, 23);
- this.reverseButton.TabIndex = 2;
- this.reverseButton.Text = "Reverse";
- this.reverseButton.UseVisualStyleBackColor = true;
- this.reverseButton.Click += new System.EventHandler(this.reverseButton_Click);
- //
- // sortButton
- //
- this.sortButton.Location = new System.Drawing.Point(3, 32);
- this.sortButton.Name = "sortButton";
- this.sortButton.Size = new System.Drawing.Size(75, 23);
- this.sortButton.TabIndex = 1;
- this.sortButton.Text = "Sort";
- this.sortButton.UseVisualStyleBackColor = true;
- this.sortButton.Click += new System.EventHandler(this.sortButton_Click);
- //
- // generateButton
- //
- this.generateButton.Location = new System.Drawing.Point(3, 3);
- this.generateButton.Name = "generateButton";
- this.generateButton.Size = new System.Drawing.Size(75, 23);
- this.generateButton.TabIndex = 0;
- this.generateButton.Text = "Generate";
- this.generateButton.UseVisualStyleBackColor = true;
- this.generateButton.Click += new System.EventHandler(this.generateButton_Click);
- //
- // RandomNumbersForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(284, 261);
- this.Controls.Add(this.tableLayoutPanel1);
- this.Name = "RandomNumbersForm";
- this.Text = "RandomNumbersForm";
- this.Load += new System.EventHandler(this.RandomNumbersForm_Load);
- this.tableLayoutPanel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
- this.panel1.ResumeLayout(false);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.DataGridView dataGridView1;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Button sortButton;
- private System.Windows.Forms.Button generateButton;
- private System.Windows.Forms.Button distinctButton;
- private System.Windows.Forms.Button reverseButton;
- }
-}
\ No newline at end of file
diff --git a/Example1/Example7/RandomNumbersForm.cs b/Example1/Example7/RandomNumbersForm.cs
deleted file mode 100644
index 2b25ec8..0000000
--- a/Example1/Example7/RandomNumbersForm.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Example7
-{
- public partial class RandomNumbersForm : Form
- {
-
- List numbList;
-
- public RandomNumbersForm()
- {
- InitializeComponent();
- }
-
- public RandomNumbersForm(List numList)
- {
- InitializeComponent();
- numbList = numList;
- }
-
-
-
- private void updateDataGrid()
- {
- dataGridView1.Rows.Clear();
- dataGridView1.Columns.Clear();
-
- DataGridViewCell cellStyle = new DataGridViewTextBoxCell();
- cellStyle.Style.BackColor = Color.Wheat;
-
- dataGridView1.Columns.Add(new DataGridViewColumn(cellStyle));
-
- foreach (int i in numbList)
- dataGridView1.Rows.Add(i.ToString());
- }
-
-
-
- private void generateButton_Click(object sender, EventArgs e)
- {
- Program.updateRandomNumbers(numbList);
- updateDataGrid();
-
-
- }
-
- private void sortButton_Click(object sender, EventArgs e)
- {
- numbList.Sort();
- updateDataGrid();
-
- }
-
- private void reverseButton_Click(object sender, EventArgs e)
- {
- numbList.Reverse();
- updateDataGrid();
- }
-
- private void distinctButton_Click(object sender, EventArgs e)
- {
- numbList = numbList.Distinct().ToList();
- updateDataGrid();
- }
-
- private void RandomNumbersForm_Load(object sender, EventArgs e)
- {
-
- }
- }
-}
diff --git a/Example1/RectangleExample/App.config b/Example1/RectangleExample/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/RectangleExample/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/RectangleExample/Properties/AssemblyInfo.cs b/Example1/RectangleExample/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7a0e6fc..0000000
--- a/Example1/RectangleExample/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("RectangleExample")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("RectangleExample")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("750656e0-d62f-4a2f-8a25-25fade6247c5")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/RectangleExample/Rectangle.cs b/Example1/RectangleExample/Rectangle.cs
deleted file mode 100644
index 526d433..0000000
--- a/Example1/RectangleExample/Rectangle.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace RectangleExample
-{
- class Rectangle
- {
- //attribute
- int width;
-
- //method which accesses the attribute
- public int Width
- {
- get { return width; }
- set {
- if (value>0)
- {
- width = value;
- }
- }
- }
-
- //attribute
- int height;
-
-
- public int Height
- {
- get { return height; }
- set
- {
- if (value > 0)
- {
- height = value;
- }
- }
- }
-
-
- public Rectangle()
- {
- width = 0;
- height = 0;
- }
-
- public Rectangle(int w,int h)
- {
- Width = w;
- Height = h;
- }
-
- public int area()
- {
- return width * height;
- }
-
- public int perimeter()
- {
- return (width + height) * 2;
-
- }
-
- public string drawMe()
- {
- string output = "";
-
- for (int r = 1; r <= height;r++)
- {
- for (int c = 1; c<=width;c++)
- {
- if ((r==1) || (r==height))
- {
- output += "X";
- }
- else
- {
- if ((c==1) || (c==width))
- {
- output += "X";
- }
- else
- {
- output += " ";
- }
- }
- }
- output += "\n";
- }
- return output;
-
-
- }
- }
-}
diff --git a/Example1/RectangleExample/RectangleExample.csproj b/Example1/RectangleExample/RectangleExample.csproj
deleted file mode 100644
index 1cdf86d..0000000
--- a/Example1/RectangleExample/RectangleExample.csproj
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {C96E587F-58A4-4311-A040-D037929BE616}
- Exe
- Properties
- RectangleExample
- RectangleExample
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Example2/App.config b/Example1/Revision GUI/App.config
similarity index 91%
rename from Example1/Example2/App.config
rename to Example1/Revision GUI/App.config
index 8e15646..88fa402 100644
--- a/Example1/Example2/App.config
+++ b/Example1/Revision GUI/App.config
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/Example1/RectangleExample/Program.cs b/Example1/Revision GUI/Program.cs
similarity index 57%
rename from Example1/RectangleExample/Program.cs
rename to Example1/Revision GUI/Program.cs
index c06070c..9f166b3 100644
--- a/Example1/RectangleExample/Program.cs
+++ b/Example1/Revision GUI/Program.cs
@@ -4,15 +4,12 @@
using System.Text;
using System.Threading.Tasks;
-namespace RectangleExample
+namespace Revision_GUI
{
class Program
{
static void Main(string[] args)
{
- Rectangle myR = new Rectangle(10, 10);
- Console.WriteLine(myR.drawMe());
- Console.ReadLine();
}
}
}
diff --git a/Example1/Example6/Properties/AssemblyInfo.cs b/Example1/Revision GUI/Properties/AssemblyInfo.cs
similarity index 89%
rename from Example1/Example6/Properties/AssemblyInfo.cs
rename to Example1/Revision GUI/Properties/AssemblyInfo.cs
index 0705bc1..8764a94 100644
--- a/Example1/Example6/Properties/AssemblyInfo.cs
+++ b/Example1/Revision GUI/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@
// 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.
-[assembly: AssemblyTitle("Example6")]
+[assembly: AssemblyTitle("Revision GUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Example6")]
+[assembly: AssemblyProduct("Revision GUI")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("ec663ceb-bae0-48c5-8cc3-f656d1fc2d16")]
+[assembly: Guid("aa4a9149-d725-42be-a30a-57252d306b7c")]
// Version information for an assembly consists of the following four values:
//
diff --git a/Example1/Example6/Example6.csproj b/Example1/Revision GUI/Revision GUI.csproj
similarity index 90%
rename from Example1/Example6/Example6.csproj
rename to Example1/Revision GUI/Revision GUI.csproj
index 98f6fe7..6044ce4 100644
--- a/Example1/Example6/Example6.csproj
+++ b/Example1/Revision GUI/Revision GUI.csproj
@@ -4,15 +4,14 @@
Debug
AnyCPU
- {EC663CEB-BAE0-48C5-8CC3-F656D1FC2D16}
+ {AA4A9149-D725-42BE-A30A-57252D306B7C}
Exe
Properties
- Example6
- Example6
- v4.5
+ Revision_GUI
+ Revision_GUI
+ v4.5.2
512
true
-
AnyCPU
diff --git a/Example1/Revision GUI/ShapesForm.Designer.cs b/Example1/Revision GUI/ShapesForm.Designer.cs
new file mode 100644
index 0000000..0a3ce6e
--- /dev/null
+++ b/Example1/Revision GUI/ShapesForm.Designer.cs
@@ -0,0 +1,38 @@
+namespace Revision_GUI
+{
+ partial class ShapesForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Text = "ShapesForm";
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Example1/Revision GUI/ShapesForm.cs b/Example1/Revision GUI/ShapesForm.cs
new file mode 100644
index 0000000..92ca51a
--- /dev/null
+++ b/Example1/Revision GUI/ShapesForm.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Revision_GUI
+{
+ public partial class ShapesForm : Form
+ {
+ public ShapesForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/Example1/Example7/RandomNumbersForm.resx b/Example1/Revision GUI/ShapesForm.resx
similarity index 100%
rename from Example1/Example7/RandomNumbersForm.resx
rename to Example1/Revision GUI/ShapesForm.resx
diff --git a/Example1/Worksheet1/App.config b/Example1/Worksheet1/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Worksheet1/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet1/Program.cs b/Example1/Worksheet1/Program.cs
deleted file mode 100644
index b218d92..0000000
--- a/Example1/Worksheet1/Program.cs
+++ /dev/null
@@ -1,215 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet1
-{
- class Program
- {
-
- static void question1()
- {
- //calculate area of triangle
- Console.WriteLine("Enter base of triangle: ");
- float baseOfTriangle = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter height of triangle: ");
- float height = float.Parse(Console.ReadLine());
-
- float area = (baseOfTriangle * 0.5f) * height;
-
- Console.WriteLine(String.Format("The area of the triangle is {0}", area));
- Console.ReadLine();
- }
-
- static void question2()
- {
- float temp1 = 0f;
- float temp2 = 0f;
- float temp3 = 0f;
- float temp4 = 0f;
- float temp5 = 0f;
- float temp6 = 0f;
- float temp7 = 0f;
-
-
- Console.WriteLine("Enter temperature for Monday: ");
- temp1 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Tuesday: ");
- temp2 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Wednesday: ");
- temp3 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Thursday: ");
- temp4 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Friday: ");
- temp5 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Saturday: ");
- temp6 = float.Parse(Console.ReadLine());
- Console.WriteLine("Enter temperature for Sunday: ");
- temp7 = float.Parse(Console.ReadLine());
-
- float averagetemp = (temp1 + temp2 + temp3 + temp4 + temp5 + temp6 + temp7) / 7;
-
-
- Console.WriteLine(String.Format("The average temperature is {0}", averagetemp));
- Console.ReadLine();
-
- }
-
-
- static void question3()
- {
- //assuming 4 students in class
- int age1, age2, age3, age4 = 0;
-
- Console.WriteLine("Enter age of student1: ");
- age1 = Convert.ToInt32(Console.ReadLine());
-
- Console.WriteLine("Enter age of student2: ");
- age2 = Convert.ToInt32(Console.ReadLine());
-
- Console.WriteLine("Enter age of student3: ");
- age3 = Convert.ToInt32(Console.ReadLine());
-
- Console.WriteLine("Enter age of student4: ");
- age4 = Convert.ToInt32(Console.ReadLine());
-
- double averageAge = (age1 + age2 + age3 + age4) / 4;
-
- Console.WriteLine(String.Format("The average age is {0}", averageAge));
- Console.ReadLine();
-
- }
-
- static void question4()
- {
- double circleArea = 0;
- Console.WriteLine("Enter radius: ");
- double radius = Convert.ToDouble(Console.ReadLine());
-
- circleArea = Math.PI * Math.Pow(radius, 2);
-
- Console.WriteLine(String.Format("The area is {0}", circleArea));
- Console.ReadLine();
- }
-
- static void question5()
- {
- int num1, num2, num3, num4, num5 = 0;
-
- Console.WriteLine("Enter num1: ");
- num1 = Convert.ToInt32(Console.ReadLine());
-
- Console.WriteLine("Enter num2: ");
- num2 = Convert.ToInt32(Console.ReadLine());
-
-
- Console.WriteLine("Enter num3: ");
- num3 = Convert.ToInt32(Console.ReadLine());
-
-
- Console.WriteLine("Enter num4: ");
- num4 = Convert.ToInt32(Console.ReadLine());
-
-
- Console.WriteLine("Enter num5: ");
- num5 = Convert.ToInt32(Console.ReadLine());
-
-
- if (num1>num2 && num1>num3 && num1 > num4 && num1>num5)
- {
- Console.WriteLine("Largest number is: " + num1);
- }
-
- if (num2 > num1 && num2 > num3 && num2 > num4 && num2 > num5)
- {
- Console.WriteLine("Largest number is: " + num2);
- }
-
- if (num3 > num2 && num3 > num1 && num3 > num4 && num3 > num5)
- {
- Console.WriteLine("Largest number is: " + num3);
- }
-
- if (num4 > num2 && num4 > num3 && num4 > num1 && num4 > num5)
- {
- Console.WriteLine("Largest number is: " + num4);
- }
-
- if (num5 > num2 && num5 > num3 && num5 > num4 && num5 > num1)
- {
- Console.WriteLine("Largest number is: " + num5);
- }
-
-
- if (num1 < num2 && num1 < num3 && num1 < num4 && num1 < num5)
- {
- Console.WriteLine("Smallest number is: " + num1);
- }
-
- if (num2 < num1 && num2 < num3 && num2 < num4 && num2 < num5)
- {
- Console.WriteLine("Smallest number is: " + num2);
- }
-
- if (num3 < num2 && num3 < num1 && num3 < num4 && num3 < num5)
- {
- Console.WriteLine("Smallest number is: " + num3);
- }
-
- if (num4 < num2 && num4 < num3 && num4 < num1 && num4 < num5)
- {
- Console.WriteLine("Smallest number is: " + num4);
- }
-
- if (num5 < num2 && num5 < num3 && num5 < num4 && num5 < num1)
- {
- Console.WriteLine("Smallest number is: " + num5);
- }
-
- double average = (num1 + num2 + num3 + num4 + num5) / 5;
- Console.WriteLine(String.Format("The average is {0}", average));
- Console.ReadLine();
- }
-
-
-
- static void Main(string[] args)
- {
- //question1();
-
- //question2();
- //question3();
- //question4();
- //question5();
-
- //menu
- int choice = 0;
-
- while(choice != 6)
- {
- Console.WriteLine("Which question would you like to try?, choose 6 to quit");
- choice = Convert.ToInt32(Console.ReadLine());
- //added a comment
- switch (choice)
- {
- case 1: question1();
- break;
- case 2: question2();
- break;
- case 3: question3();
- break;
- case 4: question4();
- break;
- case 5: question5();
- break;
- case 6: break;
- default: Console.WriteLine("Invalid option");
- break;
- }
-
- }
- }
- }
-}
diff --git a/Example1/Worksheet1/Properties/AssemblyInfo.cs b/Example1/Worksheet1/Properties/AssemblyInfo.cs
deleted file mode 100644
index 286e164..0000000
--- a/Example1/Worksheet1/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Worksheet1")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Worksheet1")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("0d5d5acd-28ce-4ccb-8c83-c171feecced6")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Worksheet1/Worksheet1.csproj b/Example1/Worksheet1/Worksheet1.csproj
deleted file mode 100644
index 8ed5c03..0000000
--- a/Example1/Worksheet1/Worksheet1.csproj
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {A290B51E-78E8-4E48-A55F-D5BC3659ABD3}
- Exe
- Properties
- Worksheet1
- Worksheet1
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet2/App.config b/Example1/Worksheet2/App.config
deleted file mode 100644
index d1428ad..0000000
--- a/Example1/Worksheet2/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/Example1/Worksheet2/Program.cs b/Example1/Worksheet2/Program.cs
deleted file mode 100644
index 839b91c..0000000
--- a/Example1/Worksheet2/Program.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet2
-{
- class Program
- {
-
- static string Diamond()
- {
- int diamondbase = 10;
- string output = "";
-
-
- for (int rows = 0; rows< diamondbase/2;rows++)
- {
-
- for (int cols = 0; cols <= diamondbase;cols++)
- {
- if ((cols <= (diamondbase/2)-rows) || (cols >= (diamondbase/2)+rows))
- {
-
- output += " ";
- }
- else
- {
- output += "X";
- }
-
- }
- output += "\n";
- }
-
- for (int rows = diamondbase/2; rows >0; rows--)
- {
-
- for (int cols = 0; cols <= diamondbase; cols++)
- {
- if ((cols <= (diamondbase / 2) - rows) || (cols >= (diamondbase / 2) + rows))
- {
-
- output += " ";
- }
- else
- {
- output += "X";
- }
-
- }
- output += "\n";
- }
-
-
-
-
-
- return output;
- }
-
-
- static void Main(string[] args)
- {
-
- Console.Write(Diamond());
- Console.ReadLine();
-
- }
- }
-}
diff --git a/Example1/Worksheet2/Properties/AssemblyInfo.cs b/Example1/Worksheet2/Properties/AssemblyInfo.cs
deleted file mode 100644
index ec837b4..0000000
--- a/Example1/Worksheet2/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Worksheet2")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Worksheet2")]
-[assembly: AssemblyCopyright("Copyright © 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("2fb6069c-58e7-48d4-ae44-d7641a07dde3")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Worksheet2/Worksheet2.csproj b/Example1/Worksheet2/Worksheet2.csproj
deleted file mode 100644
index 2f57c83..0000000
--- a/Example1/Worksheet2/Worksheet2.csproj
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {2FB6069C-58E7-48D4-AE44-D7641A07DDE3}
- Exe
- Properties
- Worksheet2
- Worksheet2
- v4.5
- 512
- true
-
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet4/App.config b/Example1/Worksheet4/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Worksheet4/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet4/Classroom.cs b/Example1/Worksheet4/Classroom.cs
deleted file mode 100644
index 4d7a063..0000000
--- a/Example1/Worksheet4/Classroom.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet4
-{
- class Classroom
- {
- string _classroomname;
-
- public string Classroomname
- {
- get { return _classroomname; }
- set { _classroomname = value; }
- }
-
- bool _projectoravailable;
-
-
- public bool Projectoravailable
- {
- get { return _projectoravailable; }
- set { _projectoravailable = value; }
- }
-
- Computer[] _computersinclassroom;
-
- internal Computer[] Computersinclassroom
- {
- get { return _computersinclassroom; }
- set { _computersinclassroom = value; }
- }
-
-
-
- public Classroom(string classroomname,bool projectoravailable,Computer[] allComputers)
- {
- Classroomname = classroomname;
- Projectoravailable = projectoravailable;
- Computersinclassroom = allComputers;
- }
-
- public string outputClassroom()
- {
- return "Name of classroom: " + Classroomname + " Projector: " + Projectoravailable;
- }
-
- //hide the default ToString method with a new method that I have written
- public override string ToString()
- {
- string output = "";
- output += "Name of classroom: " + Classroomname + " Projector: " + Projectoravailable + "\n";
- foreach (Computer c in Computersinclassroom)
- {
- output += c;
- }
- return output;
-
-
- }
- }
-}
diff --git a/Example1/Worksheet4/Computer.cs b/Example1/Worksheet4/Computer.cs
deleted file mode 100644
index cd2a714..0000000
--- a/Example1/Worksheet4/Computer.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet4
-{
- class Computer:IComparable
- {
- string _computername;
-
- public string Computername
- {
- get { return _computername; }
- set { _computername = value; }
- }
- string _computerstatus;
-
- public string Computerstatus
- {
- get { return _computerstatus; }
- set { _computerstatus = value; }
- }
- int _numberoffaults;
-
- public int Numberoffaults
- {
- get { return _numberoffaults; }
- set { _numberoffaults = value; }
- }
-
- public Computer(string cname,string status,int faults)
- {
- Computername = cname;
- Computerstatus = status;
- Numberoffaults = faults;
- }
-
- public int showNumberOfFaults()
- {
- return Numberoffaults;
- }
-
-
- public override string ToString()
- {
- string output = "";
- output = "==========================================\n";
- output += "Computer name: " + Computername + "\n";
- output += "Computer status: " + Computerstatus + "\n";
- output += "Number of faults: " + Numberoffaults + "\n";
- output += "==========================================\n";
- return output;
- }
-
-
- public int CompareTo(object other)
- {
- Computer referenceToOtherComputer = (Computer)other;
- return this.Numberoffaults.CompareTo(referenceToOtherComputer.Numberoffaults);
-
- }
-
-
-
- }
-}
diff --git a/Example1/Worksheet4/MainProgram.cs b/Example1/Worksheet4/MainProgram.cs
deleted file mode 100644
index d3f121e..0000000
--- a/Example1/Worksheet4/MainProgram.cs
+++ /dev/null
@@ -1,293 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet4
-{
- class MainProgram
- {
- //static method which will load a menu
- static void Menu(Classroom[] rooms,String menutext)
- {
- int option = 0;
- while (option!= 7)
- {
- Console.WriteLine(menutext);
- option = Convert.ToInt32(Console.ReadKey(false).KeyChar.ToString());
- switch (option)
- {
- case 1:
- opt1(rooms);
- break;
- case 2:
- opt2(rooms);
- break;
- case 3:
- opt3(rooms);
- break;
- case 4:
- opt4(rooms);
- break;
- case 5:
- opt5(rooms);
- break;
- case 6:
- opt6(rooms);
- break;
- case 7:
- break;
- default:
- Console.WriteLine("Error - incorrect option");
- break;
- }
- }
- }
-
-
- static void opt1(Classroom[] rooms)
- {
- //list all classrooms
- foreach(Classroom c in rooms)
- {
- Console.WriteLine(c);
- }
-
- }
-
- static void opt2(Classroom[] rooms)
- {
- int roomscounter = 0;
-
- foreach (Classroom c in rooms)
- {
- if (c!=null)
- {
- roomscounter++;
- }
- }
-
- Console.WriteLine("Enter new classroom name: ("+roomscounter+"/"+rooms.Length+") slots taken ");
- string classroomname = Convert.ToString(Console.ReadLine());
- Console.WriteLine("Does the classroom have a projector? ");
- bool projector = yesno();
- //create a new classroom with an empty array of computers
- Classroom newClassroom = new Classroom(classroomname, projector,new Computer[6]);
-
- //Computer[] testArray = new Computer[20];
-
- //newClassroom.Computersinclassroom = testArray;
-
-
-
- rooms[roomscounter] = newClassroom;
- }
-
- static void opt3(Classroom[] rooms)
- {
- int counter = 0;
- //1. select classroom
-
-
- foreach (Classroom cl in rooms)
- {
- if (cl!=null)
- {
- Console.WriteLine(counter + ") " + cl.Classroomname + " ");
- counter++;
- }
- }
- Console.WriteLine("Select a classroom:");
- int classroomchoice = Convert.ToInt32(Console.ReadLine());
-
- //2. add computer to classroom
- Computer c = newComputer();
-
-
- Computer[] computersInClassroom = rooms[classroomchoice].Computersinclassroom;
-
- for (int i=0;i
-
-
-
- Debug
- AnyCPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}
- Exe
- Properties
- Worksheet4
- Worksheet4
- v4.5
- 512
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet5/AddEditClassroom.Designer.cs b/Example1/Worksheet5/AddEditClassroom.Designer.cs
deleted file mode 100644
index 3badb6e..0000000
--- a/Example1/Worksheet5/AddEditClassroom.Designer.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-namespace Worksheet5
-{
- partial class AddEditClassroom
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.panel2 = new System.Windows.Forms.Panel();
- this.button1 = new System.Windows.Forms.Button();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
- this.panel1 = new System.Windows.Forms.Panel();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.tableLayoutPanel1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel1.SuspendLayout();
- this.SuspendLayout();
- //
- // tableLayoutPanel1
- //
- this.tableLayoutPanel1.ColumnCount = 1;
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 1);
- this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
- this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12);
- this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.tableLayoutPanel1.RowCount = 2;
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(260, 238);
- this.tableLayoutPanel1.TabIndex = 0;
- //
- // panel2
- //
- this.panel2.Controls.Add(this.button1);
- this.panel2.Controls.Add(this.checkBox1);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel2.Location = new System.Drawing.Point(3, 122);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(254, 113);
- this.panel2.TabIndex = 1;
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(84, 77);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 2;
- this.button1.Text = "Add";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // checkBox1
- //
- this.checkBox1.AutoSize = true;
- this.checkBox1.Location = new System.Drawing.Point(6, 27);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(67, 17);
- this.checkBox1.TabIndex = 1;
- this.checkBox1.Text = "projector";
- this.checkBox1.UseVisualStyleBackColor = true;
- //
- // panel1
- //
- this.panel1.Controls.Add(this.textBox1);
- this.panel1.Controls.Add(this.label1);
- this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel1.Location = new System.Drawing.Point(3, 3);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(254, 113);
- this.panel1.TabIndex = 0;
- //
- // textBox1
- //
- this.textBox1.Location = new System.Drawing.Point(93, 38);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(146, 20);
- this.textBox1.TabIndex = 1;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(3, 41);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(84, 13);
- this.label1.TabIndex = 0;
- this.label1.Text = "Classroom name";
- //
- // AddEditClassroom
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(284, 262);
- this.Controls.Add(this.tableLayoutPanel1);
- this.Name = "AddEditClassroom";
- this.Text = "Add Classroom";
- this.tableLayoutPanel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.CheckBox checkBox1;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Button button1;
-
- }
-}
\ No newline at end of file
diff --git a/Example1/Worksheet5/AddEditClassroom.cs b/Example1/Worksheet5/AddEditClassroom.cs
deleted file mode 100644
index c746587..0000000
--- a/Example1/Worksheet5/AddEditClassroom.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Worksheet5
-{
- public partial class AddEditClassroom : Form
- {
- public AddEditClassroom()
- {
- InitializeComponent();
- }
-
- bool editing = false;
- Classroom currentClassroom;
-
- public AddEditClassroom(Classroom classroomtoedit)
- {
- InitializeComponent();
- textBox1.Text = classroomtoedit.Classroomname;
- checkBox1.Checked = classroomtoedit.Projectoravailable;
- editing = true;
- button1.Text = "Update classroom";
- this.Text = "Update classroom";
- currentClassroom = classroomtoedit;
- }
-
-
- private void button1_Click(object sender, EventArgs e)
- {
- if (!editing) {
- string classroomname = textBox1.Text;
- bool projector = checkBox1.Checked;
- Classroom newClassroom = new Classroom(classroomname, projector, new List());
- MainProgram.rooms.Add(newClassroom);
- }
- else
- {
- currentClassroom.Classroomname = textBox1.Text;
- currentClassroom.Projectoravailable = checkBox1.Checked;
- }
-
- ClassroomsForm owner = (ClassroomsForm)this.Owner;
- owner.updateGrid();
- this.Close();
- }
- }
-}
diff --git a/Example1/Worksheet5/AddEditClassroom.resx b/Example1/Worksheet5/AddEditClassroom.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/Example1/Worksheet5/AddEditClassroom.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/Example1/Worksheet5/App.config b/Example1/Worksheet5/App.config
deleted file mode 100644
index 8e15646..0000000
--- a/Example1/Worksheet5/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Example1/Worksheet5/Classroom.cs b/Example1/Worksheet5/Classroom.cs
deleted file mode 100644
index 04e43a5..0000000
--- a/Example1/Worksheet5/Classroom.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Worksheet5
-{
- public class Classroom
- {
- string _classroomname;
-
- public string Classroomname
- {
- get { return _classroomname; }
- set { _classroomname = value; }
- }
-
- bool _projectoravailable;
-
-
- public bool Projectoravailable
- {
- get { return _projectoravailable; }
- set { _projectoravailable = value; }
- }
-
- List _computersinclassroom;
-
- internal List Computersinclassroom
- {
- get { return _computersinclassroom; }
- set { _computersinclassroom = value; }
- }
-
-
-
- public Classroom(string classroomname,bool projectoravailable,List allComputers)
- {
- Classroomname = classroomname;
- Projectoravailable = projectoravailable;
- Computersinclassroom = allComputers;
- }
-
- public Classroom(string v1,bool v2)
- {
- Classroomname = v1;
- Projectoravailable = v2;
- Computersinclassroom = new List();
- }
-
- public Classroom()
- {
- Classroomname = "";
- Projectoravailable = false;
- Computersinclassroom = new List();
- }
-
-
-
- public string outputClassroom()
- {
- return "Name of classroom: " + Classroomname + " Projector: " + Projectoravailable;
- }
-
- //hide the default ToString method with a new method that I have written
- public override string ToString()
- {
- string output = "";
- output += "Name of classroom: " + Classroomname + " Projector: " + Projectoravailable + "\n";
- foreach (Computer c in Computersinclassroom)
- {
- output += c;
- }
- return output;
-
-
- }
-
- public Classroom copyMe()
- {
- Classroom outputC = new Classroom(this.Classroomname, this.Projectoravailable, this.Computersinclassroom);
- return outputC;
- }
- }
-}
diff --git a/Example1/Worksheet5/ClassroomsForm.Designer.cs b/Example1/Worksheet5/ClassroomsForm.Designer.cs
deleted file mode 100644
index 9c91583..0000000
--- a/Example1/Worksheet5/ClassroomsForm.Designer.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-namespace Worksheet5
-{
- partial class ClassroomsForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
- this.panel1 = new System.Windows.Forms.Panel();
- this.dataGridView1 = new System.Windows.Forms.DataGridView();
- this.button1 = new System.Windows.Forms.Button();
- this.tableLayoutPanel1.SuspendLayout();
- this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
- this.SuspendLayout();
- //
- // tableLayoutPanel1
- //
- this.tableLayoutPanel1.AutoSize = true;
- this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
- this.tableLayoutPanel1.ColumnCount = 1;
- this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 1);
- this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 0);
- this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
- this.tableLayoutPanel1.Name = "tableLayoutPanel1";
- this.tableLayoutPanel1.RowCount = 2;
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 75.44484F));
- this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24.55516F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(860, 305);
- this.tableLayoutPanel1.TabIndex = 0;
- //
- // panel1
- //
- this.panel1.Controls.Add(this.button1);
- this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel1.Location = new System.Drawing.Point(3, 233);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(854, 69);
- this.panel1.TabIndex = 0;
- //
- // dataGridView1
- //
- this.dataGridView1.AllowUserToAddRows = false;
- this.dataGridView1.AllowUserToDeleteRows = false;
- this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
- this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView1.ColumnHeadersVisible = false;
- this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dataGridView1.Location = new System.Drawing.Point(3, 3);
- this.dataGridView1.Name = "dataGridView1";
- this.dataGridView1.ReadOnly = true;
- this.dataGridView1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
- this.dataGridView1.RowHeadersVisible = false;
- this.dataGridView1.Size = new System.Drawing.Size(854, 224);
- this.dataGridView1.TabIndex = 1;
- this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(3, 16);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(322, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "Add Classroom";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // ClassroomsForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(860, 305);
- this.Controls.Add(this.tableLayoutPanel1);
- this.Name = "ClassroomsForm";
- this.Text = "ClassroomsForm";
- this.Load += new System.EventHandler(this.ClassroomsForm_Load);
- this.tableLayoutPanel1.ResumeLayout(false);
- this.panel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.DataGridView dataGridView1;
- private System.Windows.Forms.Button button1;
- }
-}
\ No newline at end of file
diff --git a/Example1/Worksheet5/ClassroomsForm.resx b/Example1/Worksheet5/ClassroomsForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/Example1/Worksheet5/ClassroomsForm.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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/Example1/Worksheet5/Properties/AssemblyInfo.cs b/Example1/Worksheet5/Properties/AssemblyInfo.cs
deleted file mode 100644
index 121941b..0000000
--- a/Example1/Worksheet5/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using 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.
-[assembly: AssemblyTitle("Worksheet4")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("MCAST")]
-[assembly: AssemblyProduct("Worksheet4")]
-[assembly: AssemblyCopyright("Copyright © MCAST 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("056322aa-ac96-4582-9064-5f4fb400fe1b")]
-
-// 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:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Example1/Worksheet5/Worksheet5.sln b/Example1/Worksheet5/Worksheet5.sln
deleted file mode 100644
index 2726aa3..0000000
--- a/Example1/Worksheet5/Worksheet5.sln
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Worksheet5", "Worksheet5.csproj", "{45E69B23-084A-4805-9CC2-83B0841861A9}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {45E69B23-084A-4805-9CC2-83B0841861A9}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal