コード例 #1
0
 private void Button_Click_Refresh(object sender, RoutedEventArgs e)
 {
     Application.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         MyProperty.Clear();
         foreach (var item in (Process.GetProcesses().OrderBy(x => x.MainWindowTitle).ToList()))
         {
             MyProperty.Add(item);
         }
     }));
 }
コード例 #2
0
        public static void UnFreeze(this SpotOrder o)
        {
            lock (o.Sign)
            {
                var f = sof.Get(o.Id);
                if (f == null)
                {
                    return;
                }

                var c = o.GetUnfreezeCount(f);
                if (c > 0)
                {
                    SoFreeze sf = new SoFreeze(f.IsCoin, false, c, f.Price);
                    sf.Execute(o);
                }

                if (o.CouldUnfreezeAll())
                {
                    sof.Clear(o.Id);
                }
            }
        }