示例#1
0
        private void InstandStandby(object sender, EventArgs e)
        {
            clsShutdown oShut = new clsShutdown();

            oShut.Ruhezustand = true;
            oShut.Shutdown();
        }
示例#2
0
        private void btnStandby_Click(object sender, RoutedEventArgs e)
        {
            clsShutdown oShutdown = new clsShutdown();


            // TimeSpan ts;
            if (rbutUhrzeit.IsChecked == true)
            {
                oShutdown.Shutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
                // dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
            }
            else if (rbutDatum.IsChecked == true)
            {
                oShutdown.Shutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
                //dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
            }
            // oShutdown.dtShutdowntime = new DateTime( dtShutdowntime);


            //  dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day,Convert.ToInt32( txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
            //dtShutdowntime.AddHours(1);

            // datePicker1.text;

            //MessageBox.Show(datePicker1.Text.ToString());
            // datePicker1.va
            //dtShutdowntime.AddHours(Convert.ToDouble(txthour.Text));
            //dtShutdowntime.AddMinutes (Convert.ToDouble(txtmin.Text));
            //dtShutdowntime.AddSeconds (Convert.ToDouble(txtsec.Text));
            oShutdown.Ruhezustand = true;

            if (txthour.Text == String.Empty && txtmin.Text == String.Empty && txtsec.Text == String.Empty)
            {
                //oShutdown
                oShutdown.Shutdown();

                //Shutdown();
            }
            else
            {
                if (rbutDatum.IsChecked == true)
                {
                    oShutdown.Start_disTimer(true);
                }
                else
                {
                    oShutdown.Start_disTimer();
                    //                oShutdown
                    //ini_timer();
                }
            }
            //InstandStandby(sender, e);

            //clsShutdown oShut = new clsShutdown();
            //oShut.Ruhezustand = true;
            //oShut.Shutdown();
        }
示例#3
0
        private void InstandSHutdown(object sender, EventArgs e)
        {
            clsShutdown oShut = new clsShutdown();

            oShut.Time = true;

            oShut.Times = "1";
            oShut.Force = true;
            oShut.Shutdown();
        }
示例#4
0
private void InstandSHutdown(object sender, EventArgs e)
{
    clsShutdown oShut = new clsShutdown();
    
    oShut.Time = true;

    oShut.Times = "1";
    oShut.Force = true;
    oShut.Shutdown();


}
示例#5
0
private void InstandStandby(object sender, EventArgs e)
{
    clsShutdown oShut = new clsShutdown();
    oShut.Ruhezustand = true;
    oShut.Shutdown();
}
示例#6
0
private void btnStandby_Click(object sender, RoutedEventArgs e)
{


    clsShutdown oShutdown = new clsShutdown();


    // TimeSpan ts;
    if (rbutUhrzeit.IsChecked == true)
    {
        oShutdown.Shutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
        // dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
    }
    else if (rbutDatum.IsChecked == true)
    {
        oShutdown.Shutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
        //dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, Convert.ToInt32(txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text)); 
    }
    // oShutdown.dtShutdowntime = new DateTime( dtShutdowntime);


    //  dtShutdowntime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day,Convert.ToInt32( txthour.Text), Convert.ToInt32(txtmin.Text), Convert.ToInt32(txtsec.Text));
    //dtShutdowntime.AddHours(1);

    // datePicker1.text;

    //MessageBox.Show(datePicker1.Text.ToString());
    // datePicker1.va
    //dtShutdowntime.AddHours(Convert.ToDouble(txthour.Text));
    //dtShutdowntime.AddMinutes (Convert.ToDouble(txtmin.Text));
    //dtShutdowntime.AddSeconds (Convert.ToDouble(txtsec.Text));
    oShutdown.Ruhezustand = true;

    if (txthour.Text == String.Empty && txtmin.Text == String.Empty && txtsec.Text == String.Empty)
    {
        //oShutdown
        oShutdown.Shutdown();

        //Shutdown();


    }
    else
    {
        if (rbutDatum.IsChecked == true)
        {
            oShutdown.Start_disTimer(true);
        }
        else
        {

            oShutdown.Start_disTimer();
            //                oShutdown
            //ini_timer();

        }
    }
    //InstandStandby(sender, e);

    //clsShutdown oShut = new clsShutdown();
    //oShut.Ruhezustand = true;
    //oShut.Shutdown();
}