Пример #1
0
        public IRun Import(Form form = null)
        {
            var dialog = new BrowseSplitsIODialog(false);
            var result = dialog.ShowDialog(form);

            if (result == DialogResult.OK)
            {
                return(dialog.Run);
            }
            return(null);
        }
Пример #2
0
        public string ImportAsComparison(IRun run, Form form = null)
        {
            var dialog = new BrowseSplitsIODialog(true);
            var result = dialog.ShowDialog(form);
            var name   = dialog.RunName;

            if (result == DialogResult.OK)
            {
                result = InputBox.Show(form, "Enter Comparison Name", "Name:", ref name);
            }
            if (result == DialogResult.OK)
            {
                return(run.AddComparisonWithNameInput(dialog.Run, name, form));
            }
            return(null);
        }