private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (((ComboBoxItem)e.AddedItems[0]).Content.ToString() == "Sales Order")
            {
                //HavesterGrd.Visibility = Visibility.Visible;
                BarCodeGrd.Visibility      = Visibility.Visible;
                ExportNumberTxt.Visibility = Visibility.Visible;
                ExportNumberTxt.Focus();
            }

            if (((ComboBoxItem)e.AddedItems[0]).Content.ToString() == "Non-Export")
            {
                //HavesterGrd.Visibility = Visibility.Visible;
                BarCodeGrd.Visibility      = Visibility.Visible;
                ExportNumberTxt.Visibility = Visibility.Collapsed;
            }

            else
            {
                //HavesterGrd.Visibility = Visibility.Collapsed;
                BarCodeGrd.Visibility      = Visibility.Visible;
                ExportNumberTxt.Visibility = Visibility.Visible;
                ExportNumberTxt.Focus();
            }
            im.TransactionNumber = "";
            im.CurrentHarvester  = null;
            im.Barcode           = "";
            im.Product           = null;
            im.SetCurrentExportDetailToNull();
        }
예제 #2
0
        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (im.SourceTransaction == "Sales Order")
            {
                HavesterGrd.Visibility = Visibility.Visible;
                BarCodeGrd.Visibility  = Visibility.Collapsed;
                ExportNumberTxt.Focus();
            }

            else
            {
                HavesterGrd.Visibility = Visibility.Collapsed;
                BarCodeGrd.Visibility  = Visibility.Visible;
                ExportNumberTxt.Focus();
            }
            im.TransactionNumber = "";
            im.Barcode           = "";
            im.Product           = null;
            im.SetCurrentExportDetailToNull();
        }