Пример #1
0
        /// <summary>
        /// 双击快检单号文本框先选中当前border
        /// 然后弹出快检单号选择界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tbSampleid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Wisdom.GETSAMPLECODE = String.Empty;
            Global.sampleName    = String.Empty;
            Global.CompanyName   = String.Empty;
            ShowBorder(sender, e, "getsampleCode");
            SearchSampleidWindow windowCompany = new SearchSampleidWindow();

            windowCompany.ShowDialog();
            ShowBorder(sender, e, "getsampleCode");
        }
        /// <summary>
        /// 双击快检单号文本框先选中当前border
        /// 然后弹出快检单号选择界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tbSampleid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Wisdom.GETSAMPLECODE = String.Empty;
            Global.sampleName    = String.Empty;
            Global.CompanyName   = String.Empty;
            SearchSampleidWindow windowCompany = new SearchSampleidWindow
            {
                ShowInTaskbar = false,
                Owner         = this
            };

            windowCompany.ShowDialog();
            ShowBorder(sender, e, "Sampleid");
        }