Skip to content

Commit cbcaee6

Browse files
committed
0.1
1 parent 4878e54 commit cbcaee6

13 files changed

Lines changed: 211 additions & 71 deletions

File tree

StudentProgramCsharp/Class/CDB.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ internal class CDB
1515
SqlConnection con = new SqlConnection();
1616

1717
public CDB()
18-
{
19-
//con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|Database\Database.mdf ;Integrated Security=True");
20-
con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=" + Application.StartupPath + @"\Database\Database2.mdf;Integrated Security=True");
18+
{
19+
20+
//GET DATA FROM Debug FILL
21+
con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|Database\Database2.mdf ;Integrated Security=True");
22+
23+
//GET DATA FROM Debug FILL
24+
//con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=" + Application.StartupPath + @"\Database\Database2.mdf;Integrated Security=True");
25+
26+
//GET DATA FROM program fill
27+
//con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\yosef\source\repos\StudentProgramCsharp\StudentProgramCsharp\Database\Database2.mdf;Integrated Security=True");
28+
2129

2230
}
2331

StudentProgramCsharp/Database.rar

73 Bytes
Binary file not shown.

StudentProgramCsharp/Form1.Designer.cs

Lines changed: 13 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StudentProgramCsharp/Form1.cs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ public Form1()
4040

4141
private void Form1_Load(object sender, EventArgs e)
4242
{
43-
43+
//loade item in program page
4444
popuProgramItems();
45+
46+
//loade item in Download page
4547
popuDownloadItems();
48+
49+
//return computer name
50+
label1.Text = Environment.MachineName;
4651
}
47-
4852

53+
54+
//Fun for adding items to Program page
4955
private void popuProgramItems()
5056
{
5157
CDB readData = new CDB();
@@ -88,9 +94,9 @@ private void popuProgramItems()
8894

8995
}
9096

91-
9297

9398

99+
//Fun for adding items to Download page
94100
private void popuDownloadItems()
95101
{
96102
CDB readData = new CDB();
@@ -122,10 +128,11 @@ private void popuDownloadItems()
122128

123129
listItems[number].ProgramName = dataReader["Name"].ToString();
124130
listItems[number].Url = dataReader["Url"].ToString();
125-
126131
//listItems[number].Icone = dataReader["Image"].ToString();
132+
listItems[number].Name = dataReader["Name"].ToString();
133+
134+
127135

128-
129136

130137

131138
if (Downloads_flowLayoutPanel.Controls.Count < 0)
@@ -149,19 +156,27 @@ private void popuDownloadItems()
149156

150157
private void but_Programs_Click(object sender, EventArgs e)
151158
{
159+
//Get Program page
160+
Programs_flowLayoutPanel.Controls.Clear();
161+
popuProgramItems();
162+
152163
Programs_flowLayoutPanel.BringToFront();
164+
165+
166+
153167
}
154168

155169
private void but_My_Library_Click(object sender, EventArgs e)
156170
{
171+
//Get Library page
157172
My_Library_flowLayoutPanel.BringToFront();
158173
}
159174

160175

161176

162177
private void but_Downloads_Click(object sender, EventArgs e)
163178
{
164-
179+
//Get Download page
165180
Downloads_flowLayoutPanel.BringToFront();
166181
}
167182

StudentProgramCsharp/Form1.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<data name="button1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
122122
<value>
123123
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
124-
vwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAELWSURBVHhe7d0J
124+
vQAADr0BR/uQrQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAELWSURBVHhe7d0J
125125
/G7V3P//i2YNmidNmjUnUgqhQRrRRChFhVI3GnBT5FbdD+pOo1KRIWMhKiVpUCoaaFKaSTTPifx/73fX
126126
/zid0+d8z/d7Xddae+21X8/H4/V43I8bp87a+9rXsNdeqwcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
127127
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICavUgtodZWm6ltqZG2UOuo
@@ -413,7 +413,7 @@
413413
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
414414
<value>
415415
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAN
416-
0gAADdIBb5L+jgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAFk0SURBVHhe7d0L
416+
0AAADdABEGw9BwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAFk0SURBVHhe7d0L
417417
uK5TvTf+ubAcsxyXs0KxtOxKJ4mIEr2l12k7vXYHW5LDuyOqP9HBqShqh9pK7NBJUsoupUTakaIopZCK
418418
DnopOSvZ/+93GXM11ljfOdc8PM843Pf3d12f62KsOefzG2P87vue83nue4yR//mf/zGzyiGWhXVhU3gp
419419
7AEHwtHwATgXLoZL4XL4DlwLN8DP4Da4A/4I98JD8FjA/2Yb/41fw6/l9/B7+TP4s/gz+bP5GnwtviZf
-18.4 KB
Binary file not shown.
-16.7 KB
Binary file not shown.
-24.3 KB
Binary file not shown.

StudentProgramCsharp/Properties/Resources.Designer.cs

Lines changed: 18 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

StudentProgramCsharp/StudentProgramCsharp.csproj

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<Deterministic>true</Deterministic>
15-
<PublishUrl>publish\</PublishUrl>
16-
<Install>true</Install>
15+
<IsWebBootstrapper>false</IsWebBootstrapper>
16+
<PublishUrl>E:\test\</PublishUrl>
17+
<Install>false</Install>
1718
<InstallFrom>Disk</InstallFrom>
1819
<UpdateEnabled>false</UpdateEnabled>
1920
<UpdateMode>Foreground</UpdateMode>
@@ -22,10 +23,14 @@
2223
<UpdatePeriodically>false</UpdatePeriodically>
2324
<UpdateRequired>false</UpdateRequired>
2425
<MapFileExtensions>true</MapFileExtensions>
25-
<ApplicationRevision>0</ApplicationRevision>
26+
<ProductName>program2</ProductName>
27+
<PublisherName>yousef</PublisherName>
28+
<SuiteName>program1</SuiteName>
29+
<ApplicationRevision>4</ApplicationRevision>
2630
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
27-
<IsWebBootstrapper>false</IsWebBootstrapper>
2831
<UseApplicationTrust>false</UseApplicationTrust>
32+
<CreateDesktopShortcut>true</CreateDesktopShortcut>
33+
<PublishWizardCompleted>true</PublishWizardCompleted>
2934
<BootstrapperEnabled>true</BootstrapperEnabled>
3035
</PropertyGroup>
3136
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -47,14 +52,28 @@
4752
<ErrorReport>prompt</ErrorReport>
4853
<WarningLevel>4</WarningLevel>
4954
</PropertyGroup>
55+
<PropertyGroup>
56+
<ManifestCertificateThumbprint>95B237A11846A6F80C27282322D4EFEA50C5620C</ManifestCertificateThumbprint>
57+
</PropertyGroup>
58+
<PropertyGroup>
59+
<ManifestKeyFile>StudentProgramCsharp_TemporaryKey.pfx</ManifestKeyFile>
60+
</PropertyGroup>
61+
<PropertyGroup>
62+
<GenerateManifests>true</GenerateManifests>
63+
</PropertyGroup>
64+
<PropertyGroup>
65+
<SignManifests>true</SignManifests>
66+
</PropertyGroup>
5067
<ItemGroup>
5168
<Reference Include="AltoHttp, Version=1.0.7945.3063, Culture=neutral, processorArchitecture=MSIL">
5269
<HintPath>..\packages\AltoHttp.1.5.2\lib\net45\AltoHttp.dll</HintPath>
5370
</Reference>
5471
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
5572
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
5673
</Reference>
57-
<Reference Include="System" />
74+
<Reference Include="System">
75+
<HintPath>..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll</HintPath>
76+
</Reference>
5877
<Reference Include="System.Core" />
5978
<Reference Include="System.Xml.Linq" />
6079
<Reference Include="System.Data.DataSetExtensions" />
@@ -106,6 +125,7 @@
106125
<Compile Include="Properties\Resources.Designer.cs">
107126
<AutoGen>True</AutoGen>
108127
<DependentUpon>Resources.resx</DependentUpon>
128+
<DesignTime>True</DesignTime>
109129
</Compile>
110130
<None Include="packages.config" />
111131
<None Include="Properties\Settings.settings">
@@ -129,9 +149,6 @@
129149
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
130150
<DependentUpon>Database2.mdf</DependentUpon>
131151
</Content>
132-
<Content Include="Image\search.png" />
133-
<Content Include="Image\settings.png" />
134-
<Content Include="Image\user.png" />
135152
</ItemGroup>
136153
<ItemGroup>
137154
<BootstrapperPackage Include=".NETFramework,Version=v4.8">

0 commit comments

Comments
 (0)