Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bariseksi committed Feb 12, 2024
1 parent c08a551 commit a6e4948
Show file tree
Hide file tree
Showing 13 changed files with 786 additions and 0 deletions.
25 changes: 25 additions & 0 deletions MyBack.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyBack", "MyBack\MyBack.csproj", "{2A7FE774-D7EB-4845-902A-5072832C401A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2A7FE774-D7EB-4845-902A-5072832C401A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2A7FE774-D7EB-4845-902A-5072832C401A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2A7FE774-D7EB-4845-902A-5072832C401A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2A7FE774-D7EB-4845-902A-5072832C401A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3C0388DA-0231-4F52-B5A4-6988F086710A}
EndGlobalSection
EndGlobal
Binary file added MyBack/37295-2-sitting-man-transparent_64x64.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions MyBack/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
9 changes: 9 additions & 0 deletions MyBack/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="MyBack.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MyBack"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions MyBack/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace MyBack
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
23 changes: 23 additions & 0 deletions MyBack/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Window x:Class="MyBack.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MyBack"
mc:Ignorable="d"
Background="#00FFFFFF"
Title="My Back" Height="130" Width="160" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" MouseLeftButtonDown="Window_MouseLeftButtonDown" MouseDoubleClick="Window_MouseDoubleClick">
<Border CornerRadius="20" BorderBrush="#25686f" BorderThickness="0" Background="#25686f">
<Grid ShowGridLines="False">
<Grid.RowDefinitions>
<RowDefinition Height="26"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="36"></RowDefinition>
</Grid.RowDefinitions>
<Label Grid.Row="0" x:Name="label_WarningLevel" Foreground="#99FFFFFF" VerticalAlignment="Top" HorizontalAlignment="Center" MouseLeftButtonDown="Label_WarningLevel_MouseLeftButtonDown">Warning Level : 70</Label>
<Label Grid.Row="1" x:Name="label_Angle" Foreground="#99FFFFFF" VerticalContentAlignment="Center" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="50">00</Label>
<Label Grid.Row="2" x:Name="label_Voltage" Foreground="#99FFFFFF" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="12" MouseLeftButtonDown="Label_Voltage_MouseLeftButtonDown">-</Label>
<Label Grid.Row="2" x:Name="label_BatteryPercentage" Foreground="#99FFFFFF" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="12" MouseLeftButtonDown="Label_BatteryPercentage_MouseLeftButtonDown">0.0</Label>
</Grid>
</Border>
</Window>
Loading

0 comments on commit a6e4948

Please sign in to comment.