목록C#/코인프로그램 - 코드 (32)
하아찡
타 기기에서 주문이 들어왔을 경우 데이터를 처리하지 못하는 문제가 발생해서 일정시간(1초)간격으로 주문이 들어왔는지를 체크함. BalanceViewModel.cs /// /// 오더가 들어왔는지 1초마다 체크해줌. /// 다른 기기에서 오더를했을때 들어오지 않는 문제해결을 위해. /// 23.12.08 /// /// /// private void EventOrerCheck(object sender,ElapsedEventArgs e) { Dictionary data = new Dictionary(); List list = Task.Run(() => FAccount.AccountsAsync()).Result; Structs.Accounts mykrw = new Structs.Accounts(); bool _..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/60U2N/btsBuzlMyjV/4dgplwVdOmQ51iPpEvE42K/img.gif)
ColorView.xaml 해당 ColorPicker는 Nuget에서 PixiEditor.ColorPicker추가하여 사용했습니다. ColorModel.cs using ColorPicker.Models; using Prism.Commands; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; using static System.Net.Mime.MediaTypeNames; namespace PublicColor.Model { pub..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cjrttT/btsBjsnme1H/G0WjkJSa5PERf3hhvFkhoK/img.gif)
디자인은 변경될 가능성이 매우매우매우매우 높음... Balance.xaml BalanceViewModel.cs using Prism.Commands; using Prism.Mvvm; using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Windows.Threading; using Upbit.UpbitFunctions; using System.Windows; using Upbit.UpbitFunctions.Interface; using Language; using System.Windows.Media; using PublicColor; using Prism.Events; using Upbit.Eve..
인증요청을위해 JWT를 만듦. using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Cryptography; using System.Text; using Upbit.UpbitFunctions; namespace Upbit.Functions { public class JWT { public static string GetJWT(string parameter = "") { string queryHash = ""; //파라미터 존재할경우 if (parameter != "") { Dictionary parameters = new Dictionary(); foreach (s..
MultipleHeightConverter.cs using System; using System.Globalization; using System.Windows.Data; namespace Upbit.Converter { public class MultipleHeightConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { // 여기서 values 배열에 여러 개의 값이 포함됩니다. // 원하는 계산을 수행하고 계산 결과를 반환하세요. double result = 1; // 여기에 원하는 계산을 수행하세요 try { doubl..
콤보박스 이벤트 private DelegateCommand commandselectedmin; public DelegateCommand CommandSelectedMin => commandselectedmin ?? (commandselectedmin = new DelegateCommand(ExecuteCommandSelectedMin)); void ExecuteCommandSelectedMin(object parameter) { if (parameter is ComboBox) { ComboBox cb = (ComboBox)parameter; PreMinNumber = (int)cb.SelectedItem; MinTickTime = PreMinNumber; CreateChart(); } } MinType은..