Ejemplo n.º 1
0
        private void ExportBtn_Click(object sender, RoutedEventArgs e)
        {
            parts.JobNumber = JobNumberTB.Text as string;
            if (parts.JobNumber != null && parts.JobNumber != "")
            {
                DirectoryReturn directoryReturn = parts.CheckForDirectory("Excel");
                if (directoryReturn.IsAvailable)
                {
                    parts.ExportBOMExcel();
                }
            }

            else
            {
                MessageBox.Show($"Please enter a job number in Job Number textbox\nand try to save and export again");
            }
        }
Ejemplo n.º 2
0
        private void ExportBtn_Click(object sender, RoutedEventArgs e)
        {
            //TODO - messagebox to export bom

            DirectoryReturn directoryReturn = parts.CheckForDirectory("Excel");

            if (directoryReturn.IsAvailable)
            {
                if (parts.ObservableBOMPartsCollection != null)
                {
                    parts.ExportBOMExcel();
                }
                else
                {
                    MessageBox.Show("A job number has not been selected.\nPlease selected a job number from the list\nand try again");
                }
            }
        }