Skip to content

Commit

Permalink
Introduction to Shared Pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanValadezCastaneda committed Mar 11, 2024
1 parent 3251713 commit 64a65f6
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,14 @@
</div>
</div>
</div>
<div class="col-md-3 mb-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Shared Pointers Intro</h5>
<p class="card-text">Introduction to Shared Pointers one of the best tools for object handling in WinCC OA</p>
<a asp-area="" asp-page="/SharedPointer" class="btn btn-primary">Learn More</a>
</div>
</div>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<a class="dropdown-item" asp-area="" asp-page="/SQLQueries">SQL Query Constructions in WinCC OA</a>
<a class="dropdown-item" asp-area="" asp-page="/FunctionParameters">Extended Function Parameters Info</a>
<a class="dropdown-item" asp-area="" asp-page="/RuntimeTips">Tips for OOP $-Parameters in Runtime</a>
<a class="dropdown-item" asp-area="" asp-page="/SharedPointer">Introduction to Shared Pointers</a>
</div>
</li>
<li class="nav-item dropdown">
Expand Down
65 changes: 65 additions & 0 deletions Pages/SharedPointer.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@page
@model WinCCOAOutsideInfoRepo.Pages.SharedPointerModel
@{
ViewData["Title"] = "Introduction to Shared Pointers";
}

<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #4a90e2;
border-bottom: 2px solid #e6e6e6;
padding-bottom: 10px;
}
h3, h4, h5 {
color: #4a90e2;
}
form {
background-color: #f5f7f9;
padding: 20px;
border-radius: 8px;
margin-top: 20px;
margin-bottom: 20px;
}
label {
display: block;
margin-top: 10px;
color: #4a90e2;
}
input[type="text"] {
padding: 8px 12px;
border-radius: 4px;
border: 1px solid #ccc;
width: 100%;
box-sizing: border-box;
}
input[type="button"] {
margin-top: 20px;
background-color: #4a90e2;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="button"]:hover {
background-color: #357ab7;
}
pre {
background-color: #e6e6e6;
padding: 10px;
border-radius: 4px;
}
</style>
12 changes: 12 additions & 0 deletions Pages/SharedPointer.cshtml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace WinCCOAOutsideInfoRepo.Pages
{
public class SharedPointerModel : PageModel
{
public void OnGet()
{
}
}
}

0 comments on commit 64a65f6

Please sign in to comment.