C#/WPF
-
[WPF] DispatcherTimerC#/WPF 2024. 7. 1. 08:47
일정 시간주기로 이벤트 실행. using System;using System.Windows.Threading;private void InitTimer(){ DispatcherTimer timer = new DispatcherTimer(); // 1초 마다 Tick 됩니다. timer.Interval = TimeSpan.FromMilliseconds(1000); // Event 특성상 여러 이벤트를 등록시킬 수 있습니다. timer.Tick += Timer_Tick; timer.Tick += Timer_Tick2; timer.Start();}private void Timer_Tick(object sender, System.EventArgs e){ // logic ..
-
-
[WPF] UI Test with AppiumC#/WPF 2024. 6. 13. 13:32
WinAppDriverhttps://github.com/Microsoft/WinAppDriver?tab=readme-ov-filehttps://github.com/Microsoft/WinAppDriver/releases UI Recorderhttps://github.com/microsoft/WinAppDriver/releases/tag/UIR-v1.1https://github.com/microsoft/WinAppDriver/blob/master/Docs/UsingUIRecorder.md public class TestsBase{ private const string WindowsApplicationDriverUrl = "http://127.0.0.1:4723"; private const str..