/// <summary>
        /// Used to carry out conversion, allow user to make changes during the process, and choose path for saving files.
        /// </summary>
        public ConversionWindow(ConversionProcess conversionProcess)
        {
            // at this point the preprocessed file is only loaded
            InitializeComponent();
            ConversionProcess = conversionProcess;

            // here data is being sorted by product.
            ConversionProcess.AnalyzePreConversionFile();

            // todo: replace with actual listview preview of products with their components
            ProductName1.Text = ConversionProcess.Products[0].Name;
            Number1.Text      = ConversionProcess.Products[0].Number.ToString();
            Symbol1.Text      = ConversionProcess.Products[0].Symbol;

            ProductName2.Text = ConversionProcess.Products[1].Name;
            Number2.Text      = ConversionProcess.Products[1].Number.ToString();
            Symbol2.Text      = ConversionProcess.Products[1].Symbol;
        }
Esempio n. 2
0
 /// <summary>
 /// Used to chose file to convert, preview it's contents, and start conversion process.
 /// </summary>
 public MainWindow()
 {
     InitializeComponent();
     ConversionProcess = new ConversionProcess();
 }