using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BilgisayarKapatici
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void domainUpDown1_SelectedItemChanged(object sender, EventArgs e)
{
}
bool islemsecildimi = false;
private void button1_Click(object sender, EventArgs e)
{
if (dmpSaniye.Text=="")
{
MessageBox.Show("Ltfen ˜lk ™nce Bir De§er Girin!!!");
}
int sure;
sure = Convert.ToInt32(dmpSaniye.SelectedIndex);
System.Diagnostics.Process.Start("shutdown", "-f -s -t " + sure.ToString());
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i <= 1440; i++)
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BilgisayarKapatici
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void domainUpDown1_SelectedItemChanged(object sender, EventArgs e)
{
}
bool islemsecildimi = false;
private void button1_Click(object sender, EventArgs e)
{
if (dmpSaniye.Text=="")
{
MessageBox.Show("Ltfen ˜lk ™nce Bir De§er Girin!!!");
}
int sure;
sure = Convert.ToInt32(dmpSaniye.SelectedIndex);
System.Diagnostics.Process.Start("shutdown", "-f -s -t " + sure.ToString());
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i <= 1440; i++)
{
if (islemsecildimi)
button1.Enabled = true;
dmpSaniye.Items.Add( i + " saniye sonra kapan");
}
}
private void button2_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("shutdown", "-a");
}
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("shutdown", "-f -s -t 300");
}
private void button4_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("shutdown", "-a");
}
}
}
Hiç yorum yok:
Yorum Gönder