Exemplo n.º 1
0
        private void button_Open_Click(object sender, RoutedEventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.Filter   = "Text file (*.txt)|*.txt";
            openFileDialog1.FileName = "deafault.txt";
            if (true == openFileDialog1.ShowDialog())
            {
                inputClass = new InputClass(openFileDialog1.FileName, inputBox, outputList, comboBoxIn, FirstBox, SecondBox);

                if (comi)
                {
                    inputClass.CreateMassComi();
                }
                else
                {
                    if (weigh)
                    {
                        inputClass.Output(true);
                    }
                    else
                    {
                        inputClass.Output();
                    }

                    if (orienatation)
                    {
                        inputClass.OutputMassive(false);
                    }
                    else
                    {
                        inputClass.OutputMassive(true);
                    }

                    open = true;
                }
            }
        }