/// <summary>
        /// 查找
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void OnFind(object sender, ExecutedRoutedEventArgs args)
        {
            if (winFR == null || winFR.IsLoaded == false)
                winFR = new winFindAndReplace(RichTextBox1);

            winFR.Show();
        }
 private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     //关闭查找窗体
     if (winFR != null)
     {
         winFR.CloseTag = true;
         winFR.Close();
         winFR = null;
     }
 }
 private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     //关闭查找窗体
     if (winFR != null)
     {
         winFR.CloseTag = true;
         winFR.Close();
         winFR = null;
     }
 }
        /// <summary>
        /// 查找
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void OnFind(object sender, ExecutedRoutedEventArgs args)
        {
            if (winFR == null || winFR.IsLoaded==false)
                winFR = new winFindAndReplace(RichTextBox1);

            winFR.Show();
        }