zoukankan      html  css  js  c++  java
  • 忙碌进度条

    private TMCBusyIndicator()
            {
                InitializeComponent();
            }
            public static object o=new object();
            private static TMCBusyIndicator  instance;
            public static TMCBusyIndicator Instance
            {
                get
                {
                    lock (o)
                    {
                        if (instance == null)
                        {
                            instance = new TMCBusyIndicator();
                            instance.ShowInTaskbar = false;
                        }
                        return instance;
                    }
                }
            }
            public void Start()
            {
                //this.busyIndicator.IsBusy = true;
                this.Dispatcher.BeginInvoke(new Action(() => { ; }));
                this.Visibility = Visibility.Visible;
                this.Show();
               
            }
            public void Stop()
            {
                //this.busyIndicator.IsBusy = false;
                this.Dispatcher.BeginInvoke(new Action(() => { ; }));
                this.Visibility = Visibility.Hidden;
            }
            private void Button_Click(object sender, RoutedEventArgs e)
            {
                ;
            }
  • 相关阅读:
    DevC++手动开栈
    二分图|网络流建模复习
    C++常用数据类型范围
    卡常剪贴板
    AcWing 2425. 奇怪的计算器
    AcWing 153. 双栈排序 震惊 !2^n 过 1000
    AcWing 352. 闇の連鎖
    AcWing 246. 区间最大公约数
    AcWing 221. 龙哥的问题
    AcWing 381. 有线电视网络
  • 原文地址:https://www.cnblogs.com/itelite/p/2287920.html
Copyright © 2011-2022 走看看