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)
            {
                ;
            }
  • 相关阅读:
    作为一个 .NET 开发者 应该了解哪些知识?
    服务器扩容,新加一上硬盘,是否要重做raid
    DB2常见错误
    Eclipse快捷键与Notepad++ 快捷建冲突的问题
    Java+MySql图片数据保存
    也谈设计模式Facade
    MyBatis入门级Demo
    Python中的字符串与字符编码
    Python流程控制语句
    Python中的运算符
  • 原文地址:https://www.cnblogs.com/itelite/p/2287920.html
Copyright © 2011-2022 走看看