using System; using System.Windows; using System.Windows.Threading;// DispatcherTimer를 위해 추가 namespace A164_WPF_DigitalClock { /// /// MainWindow.xaml에 대한 상호 작용 논리 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DispatcherTimer timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 1); // 1초 timer.Tick += Timer_Tick; // 이벤트 처리 메소드 지정 timer...
0 MC MR M- M+ MS % √ x² 1/x CE C a / 7 8 9 x 4 5 6 - 1 2 3 + ± 0 . =
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace A161_WinformCalc { public partial class Form1 : Form { private double saved; // txtResult에 있는 값 저장 private double memory; // 메모리에 저장된 값 private char op = '\0'; // 현재 계산할 op p..
0 7 8 9 + 4 5 6 - 1 2 3 x . 0 = / using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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 Syste..
WPF는 타이머 기능을 DispatcherTimer를 사용해 구현한다. Strat Blinking! Stop Blinking! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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 S..