//private bool startService() //{ // try // { // if (host == null) // { // host = new WebServiceHost(typeof(ReceiverService)); // } // host.Open(); // LogUtil.Logger.Info("NCR接受服务启动:"+host.Description.Endpoints[0].Address); // return true; // } // catch (Exception ex) // { // MessageBox.Show(ex.Message); // LogUtil.Logger.Error(ex.Message); // } // return false; //} private void MaterialCheckBtn_Click(object sender, RoutedEventArgs e) { if (MaterialCheck.IsShow == false) { materialCheck = new MaterialCheck(); materialCheck.Show(); } else { materialCheck.Show(); materialCheck.Activate(); } }
public AbortConfirmWindow(MaterialCheck mc, string OrderNr) { InitializeComponent(); OrderLab.Content = OrderNr; this.mc = mc; }