Exemplo n.º 1
0
        private void AddNewTest()
        {
            var textInputWindow = new TextInputWindow("Enter the name of the test");

            textInputWindow.ShowDialog();

            if (textInputWindow.DialogResult == true)
            {
                var testName = textInputWindow.EnteredText;

                var pathToTest      = $"Tests\\{testName}\\{testName}.tmt";
                var redactingWindow = new RedactingWindow(pathToTest, true);

                redactingWindow.Show();
                Close();
            }
        }
Exemplo n.º 2
0
        private void AskToRedactTest()
        {
            var result = MessageBox.Show("Would you like to redact this test?", "Redact test", MessageBoxButton.YesNo);

            if (result == MessageBoxResult.Yes)
            {
                var resultPath = filePaths[PathsList.SelectedIndex];

                var redactingWindow = new RedactingWindow(resultPath, false);

                if (redactingWindow.IsLoadedProperly)
                {
                    redactingWindow.Show();
                    Close();
                }
            }
        }