initial commit
This commit is contained in:
commit
320612bfae
26 changed files with 602 additions and 0 deletions
22
ShutdownTimer.sln
Normal file
22
ShutdownTimer.sln
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.23107.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShutdownTimer", "ShutdownTimer\ShutdownTimer.csproj", "{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
209
ShutdownTimer/Fmain.Designer.cs
generated
Normal file
209
ShutdownTimer/Fmain.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,209 @@
|
|||
namespace ShutdownTimer
|
||||
{
|
||||
// Token: 0x02000002 RID: 2
|
||||
public partial class Fmain : global::System.Windows.Forms.Form
|
||||
{
|
||||
// Token: 0x0600000D RID: 13 RVA: 0x00002344 File Offset: 0x00000544
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
{
|
||||
this.components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
// Token: 0x0600000E RID: 14 RVA: 0x0000237C File Offset: 0x0000057C
|
||||
private void InitializeComponent()
|
||||
{
|
||||
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::ShutdownTimer.Fmain));
|
||||
this.MSmenu = new global::System.Windows.Forms.MenuStrip();
|
||||
this.menuToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.closeToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem2 = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.timerToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.cancelToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem3 = new global::System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripMenuItem4 = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.daysToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.hoursToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.minutesToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.secondsToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
|
||||
this.label1 = new global::System.Windows.Forms.Label();
|
||||
this.maskedTextBox1 = new global::System.Windows.Forms.MaskedTextBox();
|
||||
this.MSmenu.SuspendLayout();
|
||||
base.SuspendLayout();
|
||||
this.MSmenu.Dock = global::System.Windows.Forms.DockStyle.Bottom;
|
||||
this.MSmenu.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.menuToolStripMenuItem,
|
||||
this.timerToolStripMenuItem
|
||||
});
|
||||
this.MSmenu.Location = new global::System.Drawing.Point(0, 117);
|
||||
this.MSmenu.Name = "MSmenu";
|
||||
this.MSmenu.Size = new global::System.Drawing.Size(284, 24);
|
||||
this.MSmenu.TabIndex = 0;
|
||||
this.MSmenu.Text = "menuStrip1";
|
||||
this.menuToolStripMenuItem.DropDownItems.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.aboutToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.closeToolStripMenuItem,
|
||||
this.toolStripMenuItem2
|
||||
});
|
||||
this.menuToolStripMenuItem.Name = "menuToolStripMenuItem";
|
||||
this.menuToolStripMenuItem.Size = new global::System.Drawing.Size(41, 20);
|
||||
this.menuToolStripMenuItem.Text = "App";
|
||||
this.menuToolStripMenuItem.Click += new global::System.EventHandler(this.menuToolStripMenuItem_Click);
|
||||
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
|
||||
this.aboutToolStripMenuItem.Size = new global::System.Drawing.Size(165, 22);
|
||||
this.aboutToolStripMenuItem.Text = "About";
|
||||
this.aboutToolStripMenuItem.Click += new global::System.EventHandler(this.aboutToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new global::System.Drawing.Size(162, 6);
|
||||
this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
|
||||
this.closeToolStripMenuItem.Size = new global::System.Drawing.Size(165, 22);
|
||||
this.closeToolStripMenuItem.Text = "Close";
|
||||
this.closeToolStripMenuItem.Click += new global::System.EventHandler(this.closeToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new global::System.Drawing.Size(165, 22);
|
||||
this.toolStripMenuItem2.Text = "Close and Cancel";
|
||||
this.toolStripMenuItem2.Click += new global::System.EventHandler(this.toolStripMenuItem2_Click);
|
||||
this.timerToolStripMenuItem.DropDownItems.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.cancelToolStripMenuItem,
|
||||
this.startToolStripMenuItem,
|
||||
this.toolStripMenuItem3,
|
||||
this.toolStripMenuItem4
|
||||
});
|
||||
this.timerToolStripMenuItem.Name = "timerToolStripMenuItem";
|
||||
this.timerToolStripMenuItem.Size = new global::System.Drawing.Size(50, 20);
|
||||
this.timerToolStripMenuItem.Text = "Timer";
|
||||
this.cancelToolStripMenuItem.Name = "cancelToolStripMenuItem";
|
||||
this.cancelToolStripMenuItem.Size = new global::System.Drawing.Size(129, 22);
|
||||
this.cancelToolStripMenuItem.Text = "Cancel";
|
||||
this.cancelToolStripMenuItem.Click += new global::System.EventHandler(this.cancelToolStripMenuItem_Click);
|
||||
this.startToolStripMenuItem.Name = "startToolStripMenuItem";
|
||||
this.startToolStripMenuItem.Size = new global::System.Drawing.Size(129, 22);
|
||||
this.startToolStripMenuItem.Text = "Start";
|
||||
this.startToolStripMenuItem.Click += new global::System.EventHandler(this.startToolStripMenuItem_Click);
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new global::System.Drawing.Size(126, 6);
|
||||
this.toolStripMenuItem4.DropDownItems.AddRange(new global::System.Windows.Forms.ToolStripItem[]
|
||||
{
|
||||
this.daysToolStripMenuItem,
|
||||
this.hoursToolStripMenuItem,
|
||||
this.minutesToolStripMenuItem,
|
||||
this.secondsToolStripMenuItem
|
||||
});
|
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
|
||||
this.toolStripMenuItem4.Size = new global::System.Drawing.Size(129, 22);
|
||||
this.toolStripMenuItem4.Text = "Change to";
|
||||
this.daysToolStripMenuItem.Name = "daysToolStripMenuItem";
|
||||
this.daysToolStripMenuItem.Size = new global::System.Drawing.Size(118, 22);
|
||||
this.daysToolStripMenuItem.Text = "Days";
|
||||
this.daysToolStripMenuItem.Click += new global::System.EventHandler(this.daysToolStripMenuItem_Click);
|
||||
this.hoursToolStripMenuItem.Name = "hoursToolStripMenuItem";
|
||||
this.hoursToolStripMenuItem.Size = new global::System.Drawing.Size(118, 22);
|
||||
this.hoursToolStripMenuItem.Text = "Hours";
|
||||
this.hoursToolStripMenuItem.Click += new global::System.EventHandler(this.hoursToolStripMenuItem_Click);
|
||||
this.minutesToolStripMenuItem.Name = "minutesToolStripMenuItem";
|
||||
this.minutesToolStripMenuItem.Size = new global::System.Drawing.Size(118, 22);
|
||||
this.minutesToolStripMenuItem.Text = "Minutes";
|
||||
this.minutesToolStripMenuItem.Click += new global::System.EventHandler(this.minutesToolStripMenuItem_Click);
|
||||
this.secondsToolStripMenuItem.Name = "secondsToolStripMenuItem";
|
||||
this.secondsToolStripMenuItem.Size = new global::System.Drawing.Size(118, 22);
|
||||
this.secondsToolStripMenuItem.Text = "Seconds";
|
||||
this.secondsToolStripMenuItem.Click += new global::System.EventHandler(this.secondsToolStripMenuItem_Click);
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new global::System.Drawing.Font("Segoe UI", 20.25f, global::System.Drawing.FontStyle.Bold, global::System.Drawing.GraphicsUnit.Point, 0);
|
||||
this.label1.Location = new global::System.Drawing.Point(102, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new global::System.Drawing.Size(81, 37);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Time";
|
||||
this.maskedTextBox1.Font = new global::System.Drawing.Font("Segoe UI", 15.75f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point, 0);
|
||||
this.maskedTextBox1.Location = new global::System.Drawing.Point(16, 62);
|
||||
this.maskedTextBox1.Mask = "00000000";
|
||||
this.maskedTextBox1.Name = "maskedTextBox1";
|
||||
this.maskedTextBox1.Size = new global::System.Drawing.Size(253, 35);
|
||||
this.maskedTextBox1.TabIndex = 2;
|
||||
this.maskedTextBox1.TextAlign = global::System.Windows.Forms.HorizontalAlignment.Center;
|
||||
base.AutoScaleDimensions = new global::System.Drawing.SizeF(6f, 13f);
|
||||
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Font;
|
||||
base.ClientSize = new global::System.Drawing.Size(284, 141);
|
||||
base.Controls.Add(this.maskedTextBox1);
|
||||
base.Controls.Add(this.label1);
|
||||
base.Controls.Add(this.MSmenu);
|
||||
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
|
||||
base.MainMenuStrip = this.MSmenu;
|
||||
base.MaximizeBox = false;
|
||||
base.MinimizeBox = false;
|
||||
base.Name = "Fmain";
|
||||
this.Text = "ShutdownTimer - Seconds";
|
||||
base.Load += new global::System.EventHandler(this.Fmain_Load);
|
||||
this.MSmenu.ResumeLayout(false);
|
||||
this.MSmenu.PerformLayout();
|
||||
base.ResumeLayout(false);
|
||||
base.PerformLayout();
|
||||
}
|
||||
|
||||
// Token: 0x04000003 RID: 3
|
||||
private global::System.ComponentModel.IContainer components = null;
|
||||
|
||||
// Token: 0x04000004 RID: 4
|
||||
private global::System.Windows.Forms.MenuStrip MSmenu;
|
||||
|
||||
// Token: 0x04000005 RID: 5
|
||||
private global::System.Windows.Forms.ToolStripMenuItem menuToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000006 RID: 6
|
||||
private global::System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000007 RID: 7
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||
|
||||
// Token: 0x04000008 RID: 8
|
||||
private global::System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000009 RID: 9
|
||||
private global::System.Windows.Forms.ToolStripMenuItem timerToolStripMenuItem;
|
||||
|
||||
// Token: 0x0400000A RID: 10
|
||||
private global::System.Windows.Forms.ToolStripMenuItem cancelToolStripMenuItem;
|
||||
|
||||
// Token: 0x0400000B RID: 11
|
||||
private global::System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
|
||||
|
||||
// Token: 0x0400000C RID: 12
|
||||
private global::System.Windows.Forms.ToolStripMenuItem startToolStripMenuItem;
|
||||
|
||||
// Token: 0x0400000D RID: 13
|
||||
private global::System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
||||
|
||||
// Token: 0x0400000E RID: 14
|
||||
private global::System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
|
||||
|
||||
// Token: 0x0400000F RID: 15
|
||||
private global::System.Windows.Forms.ToolStripMenuItem daysToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000010 RID: 16
|
||||
private global::System.Windows.Forms.ToolStripMenuItem hoursToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000011 RID: 17
|
||||
private global::System.Windows.Forms.ToolStripMenuItem minutesToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000012 RID: 18
|
||||
private global::System.Windows.Forms.ToolStripMenuItem secondsToolStripMenuItem;
|
||||
|
||||
// Token: 0x04000013 RID: 19
|
||||
private global::System.Windows.Forms.Label label1;
|
||||
|
||||
// Token: 0x04000014 RID: 20
|
||||
private global::System.Windows.Forms.MaskedTextBox maskedTextBox1;
|
||||
}
|
||||
}
|
||||
132
ShutdownTimer/Fmain.cs
Normal file
132
ShutdownTimer/Fmain.cs
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShutdownTimer
|
||||
{
|
||||
// Token: 0x02000002 RID: 2
|
||||
public partial class Fmain : Form
|
||||
{
|
||||
// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
|
||||
public Fmain()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
// Token: 0x06000002 RID: 2 RVA: 0x0000207F File Offset: 0x0000027F
|
||||
private void menuToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000003 RID: 3 RVA: 0x00002082 File Offset: 0x00000282
|
||||
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
// Token: 0x06000004 RID: 4 RVA: 0x0000208B File Offset: 0x0000028B
|
||||
private void toolStripMenuItem2_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
Process.Start("CMD.exe", "/C shutdown -a");
|
||||
}
|
||||
|
||||
// Token: 0x06000005 RID: 5 RVA: 0x000020A4 File Offset: 0x000002A4
|
||||
private void Fmain_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000006 RID: 6 RVA: 0x000020A8 File Offset: 0x000002A8
|
||||
private void startToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.type == "seconds")
|
||||
{
|
||||
Process.Start("CMD.exe", "/C shutdown -s -t " + this.maskedTextBox1.Text);
|
||||
}
|
||||
if (this.type == "minutes")
|
||||
{
|
||||
if (int.Parse(this.maskedTextBox1.Text) >= 1666667)
|
||||
{
|
||||
MessageBox.Show("Max. value on minutes are 1666666", "Error", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
int num = int.Parse(this.maskedTextBox1.Text) * 60;
|
||||
Process.Start("CMD.exe", "/C shutdown -s -t " + num);
|
||||
}
|
||||
if (this.type == "hours")
|
||||
{
|
||||
if (int.Parse(this.maskedTextBox1.Text) >= 27778)
|
||||
{
|
||||
MessageBox.Show("Max. value on hours are 27777", "Error", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
int num2 = int.Parse(this.maskedTextBox1.Text) * 3600;
|
||||
Process.Start("CMD.exe", "/C shutdown -s -t " + num2);
|
||||
}
|
||||
if (this.type == "days")
|
||||
{
|
||||
if (int.Parse(this.maskedTextBox1.Text) >= 1158)
|
||||
{
|
||||
MessageBox.Show("Max. value on days are 1157", "Error", MessageBoxButtons.OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num3 = int.Parse(this.maskedTextBox1.Text) * 86400;
|
||||
Process.Start("CMD.exe", "/C shutdown -s -t " + num3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000007 RID: 7 RVA: 0x00002260 File Offset: 0x00000460
|
||||
private void cancelToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Process.Start("CMD.exe", "/C shutdown -a");
|
||||
}
|
||||
|
||||
// Token: 0x06000008 RID: 8 RVA: 0x00002273 File Offset: 0x00000473
|
||||
private void secondsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.type = "seconds";
|
||||
Form.ActiveForm.Text = "ShutdownTimer - Seconds";
|
||||
this.maskedTextBox1.Mask = "00000000";
|
||||
}
|
||||
|
||||
// Token: 0x06000009 RID: 9 RVA: 0x000022A2 File Offset: 0x000004A2
|
||||
private void minutesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.type = "minutes";
|
||||
Form.ActiveForm.Text = "ShutdownTimer - Minutes";
|
||||
this.maskedTextBox1.Mask = "0000000";
|
||||
}
|
||||
|
||||
// Token: 0x0600000A RID: 10 RVA: 0x000022D1 File Offset: 0x000004D1
|
||||
private void hoursToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.type = "hours";
|
||||
Form.ActiveForm.Text = "ShutdownTimer - Hours";
|
||||
this.maskedTextBox1.Mask = "00000";
|
||||
}
|
||||
|
||||
// Token: 0x0600000B RID: 11 RVA: 0x00002300 File Offset: 0x00000500
|
||||
private void daysToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.type = "days";
|
||||
Form.ActiveForm.Text = "ShutdownTimer - Days";
|
||||
this.maskedTextBox1.Mask = "0000";
|
||||
}
|
||||
|
||||
// Token: 0x0600000C RID: 12 RVA: 0x0000232F File Offset: 0x0000052F
|
||||
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("By Adrien. Follow TheCoolCat! on YouTube", "About", MessageBoxButtons.OK);
|
||||
}
|
||||
|
||||
// Token: 0x04000001 RID: 1
|
||||
private string type = "seconds";
|
||||
|
||||
// Token: 0x04000002 RID: 2
|
||||
private string shutdownCommand = "/C shutdown -s -t ";
|
||||
}
|
||||
}
|
||||
BIN
ShutdownTimer/Fmain.resources
Normal file
BIN
ShutdownTimer/Fmain.resources
Normal file
Binary file not shown.
18
ShutdownTimer/Program.cs
Normal file
18
ShutdownTimer/Program.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShutdownTimer
|
||||
{
|
||||
// Token: 0x02000003 RID: 3
|
||||
internal static class Program
|
||||
{
|
||||
// Token: 0x0600000F RID: 15 RVA: 0x00002B99 File Offset: 0x00000D99
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Fmain());
|
||||
}
|
||||
}
|
||||
}
|
||||
18
ShutdownTimer/Properties/AssemblyInfo.cs
Normal file
18
ShutdownTimer/Properties/AssemblyInfo.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyTitle("ShutdownTimer")]
|
||||
[assembly: AssemblyProduct("ShutdownTimer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("e7ffafc8-d82a-40bf-b7a1-d1c4d6897d7f")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
72
ShutdownTimer/Properties/Resources.cs
Normal file
72
ShutdownTimer/Properties/Resources.cs
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ShutdownTimer.Properties
|
||||
{
|
||||
// Token: 0x02000004 RID: 4
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
[CompilerGenerated]
|
||||
internal class Resources
|
||||
{
|
||||
// Token: 0x06000010 RID: 16 RVA: 0x00002BB4 File Offset: 0x00000DB4
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000001 RID: 1
|
||||
// (get) Token: 0x06000011 RID: 17 RVA: 0x00002BC0 File Offset: 0x00000DC0
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (object.ReferenceEquals(Resources.resourceMan, null))
|
||||
{
|
||||
ResourceManager resourceManager = new ResourceManager("ShutdownTimer.Properties.Resources", typeof(Resources).Assembly);
|
||||
Resources.resourceMan = resourceManager;
|
||||
}
|
||||
return Resources.resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000002 RID: 2
|
||||
// (get) Token: 0x06000012 RID: 18 RVA: 0x00002C0C File Offset: 0x00000E0C
|
||||
// (set) Token: 0x06000013 RID: 19 RVA: 0x00002C23 File Offset: 0x00000E23
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return Resources.resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
Resources.resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000003 RID: 3
|
||||
// (get) Token: 0x06000014 RID: 20 RVA: 0x00002C2C File Offset: 0x00000E2C
|
||||
internal static Bitmap Computer_Hardware_Shutdown_icon
|
||||
{
|
||||
get
|
||||
{
|
||||
object @object = Resources.ResourceManager.GetObject("Computer-Hardware-Shutdown-icon", Resources.resourceCulture);
|
||||
return (Bitmap)@object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000015 RID: 21
|
||||
private static ResourceManager resourceMan;
|
||||
|
||||
// Token: 0x04000016 RID: 22
|
||||
private static CultureInfo resourceCulture;
|
||||
}
|
||||
}
|
||||
BIN
ShutdownTimer/Properties/Resources.resources
Normal file
BIN
ShutdownTimer/Properties/Resources.resources
Normal file
Binary file not shown.
26
ShutdownTimer/Properties/Settings.Designer.cs
generated
Normal file
26
ShutdownTimer/Properties/Settings.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Configuration;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ShutdownTimer.Properties
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
[CompilerGenerated]
|
||||
internal sealed partial class Settings : ApplicationSettingsBase
|
||||
{
|
||||
// Token: 0x17000004 RID: 4
|
||||
// (get) Token: 0x06000015 RID: 21 RVA: 0x00002C5C File Offset: 0x00000E5C
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return Settings.defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000017 RID: 23
|
||||
private static Settings defaultInstance = (Settings)SettingsBase.Synchronized(new Settings());
|
||||
}
|
||||
}
|
||||
5
ShutdownTimer/Properties/Settings.settings
Normal file
5
ShutdownTimer/Properties/Settings.settings
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile CurrentProfile="(Default)" GeneratedClassNamespace="ShutdownTimer.Properties" GeneratedClassName="Settings" xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings">
|
||||
<Profiles />
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
73
ShutdownTimer/ShutdownTimer.csproj
Normal file
73
ShutdownTimer/ShutdownTimer.csproj
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{0D2CCBAD-F82C-4875-BE8D-C385BEA180F6}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ShutdownTimer</RootNamespace>
|
||||
<AssemblyName>ShutdownTimer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<ApplicationIcon>ShutdownTimer.ico</ApplicationIcon>
|
||||
<StartupObject>ShutdownTimer.Program</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Fmain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Fmain.Designer.cs">
|
||||
<DependentUpon>Fmain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Fmain.resources" />
|
||||
<EmbeddedResource Include="Properties\Resources.resources" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.manifest" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
BIN
ShutdownTimer/ShutdownTimer.ico
Normal file
BIN
ShutdownTimer/ShutdownTimer.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 162 KiB |
11
ShutdownTimer/app.manifest
Normal file
11
ShutdownTimer/app.manifest
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.exe
Normal file
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.exe
Normal file
Binary file not shown.
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.pdb
Normal file
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.pdb
Normal file
Binary file not shown.
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.vshost.exe
Normal file
BIN
ShutdownTimer/bin/Debug/ShutdownTimer.vshost.exe
Normal file
Binary file not shown.
11
ShutdownTimer/bin/Debug/ShutdownTimer.vshost.exe.manifest
Normal file
11
ShutdownTimer/bin/Debug/ShutdownTimer.vshost.exe.manifest
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,5 @@
|
|||
C:\Users\Administrator\Documents\ShutdownTimerSource\ShutdownTimer\bin\Debug\ShutdownTimer.exe
|
||||
C:\Users\Administrator\Documents\ShutdownTimerSource\ShutdownTimer\bin\Debug\ShutdownTimer.pdb
|
||||
C:\Users\Administrator\Documents\ShutdownTimerSource\ShutdownTimer\obj\Debug\ShutdownTimer.csprojResolveAssemblyReference.cache
|
||||
C:\Users\Administrator\Documents\ShutdownTimerSource\ShutdownTimer\obj\Debug\ShutdownTimer.exe
|
||||
C:\Users\Administrator\Documents\ShutdownTimerSource\ShutdownTimer\obj\Debug\ShutdownTimer.pdb
|
||||
Binary file not shown.
BIN
ShutdownTimer/obj/Debug/ShutdownTimer.exe
Normal file
BIN
ShutdownTimer/obj/Debug/ShutdownTimer.exe
Normal file
Binary file not shown.
BIN
ShutdownTimer/obj/Debug/ShutdownTimer.pdb
Normal file
BIN
ShutdownTimer/obj/Debug/ShutdownTimer.pdb
Normal file
Binary file not shown.
Reference in a new issue