Im 16 and tried creating my own shutdown program today in Visual C# WPF, i think the code is right but i only started today and am wondering why the code will not execute properly.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
Console.Write("(Shutdown t (Hours.text * 3600) + (Minutes.text * 60) + (Seconds))");
}
}
}
Im trying to get the program to take the data from the text fields and write them into console and then execute the shutdown timer designated by the user in the form.
Please point out why its not working
View the full article
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
Console.Write("(Shutdown t (Hours.text * 3600) + (Minutes.text * 60) + (Seconds))");
}
}
}
Im trying to get the program to take the data from the text fields and write them into console and then execute the shutdown timer designated by the user in the form.
Please point out why its not working
View the full article