protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            base.OnClosing(e);
            e.Cancel = true;
            this.Hide();
            BulkPriceChnage objBulkPriceChnage = Application.Current.Windows.OfType <View.BulkPriceChnage>().FirstOrDefault();

            objBulkPriceChnage?.Close();
            PendingOrderClassicVM.GETInstance.ClearAllFields();
        }
 public void CloseWindow(object e)
 {
     BulkPriceChnage oBulkPriceChnage = System.Windows.Application.Current.Windows.OfType<BulkPriceChnage>().FirstOrDefault();
     if (oBulkPriceChnage != null)
     {
        // oBulkPriceChnage.Hide();
         ViewModel.Order.PendingOrderClassicVM.bulkChangeWindowOpen = false;
         ViewModel.Order.PendingOrderClassicVM.GETInstance.ShowPendingWindowButtons();
         oBulkPriceChnage?.Close();
     }
    
     //BulkPriceChnage oBulkPriceChnage = System.Windows.Application.Current.Windows.OfType<BulkPriceChnage>().FirstOrDefault();
     //if (oBulkPriceChnage != null)
     //{
     //    oBulkPriceChnage.Hide();
     //    PendingOrderClassicVM.bulkChangeWindowOpen = false;
     //    PendingOrderClassicVM.GETInstance.ShowPendingWindowButtons();
     //}
 }