Example #1
0
        private void Sdf_Copy_Click(object sender, RoutedEventArgs e)
        {
            /*
             * ToastNone toastNone = new ToastNone("审核失败", "未查询到预约信息,请与被仿人联系后重试!");
             * toastNone.Show();
             */
            /*
             * ToastNone toastNone = new ToastNone("人证验证失败", "人证验证未通过,请与前台联系!");
             * toastNone.Show();*/
            var dlg = MessageBoxSelf.getInstance();

            for (int i = 0; i < 600; i++)
            {
                var dlg1 = new MessageBoxSelf();
                dlg1.ShowEx();
                dlg1.Close();
            }
            dlg.ShowEx();
            Task.Run(() =>
            {
                Common.Sleep(3000);
                dlg.Dispatcher.Invoke(() =>
                {
                    dlg.Close();
                });
                GC.Collect();
            });


            /*
             * ToastNone toastNone = new ToastNone("Welcome To TianMa", "请取走您的访客卡,并到前台领取访客证!",3);
             * toastNone.Show();
             */
        }
Example #2
0
    void Compound()
    {
        GameObject     mbox       = UIWindowMng.Instance.GetWindowGo("MessageBoxSelf");
        MessageBoxSelf messagebox = mbox.GetComponent <MessageBoxSelf>();

        if (messagebox != null)
        {
            messagebox.Show("提示", "是否需要合成", StartCompound, null);
        }
    }