예제 #1
0
        private void ViewButton_Click(object sender, EventArgs e)
        {
            var screen = new SetInfoScreen(CustomSubset.AlgSet, CustomSubset.RangeStr, SubsetTools.GetXmlSubsetFile().GetNameMap(CustomSubset.AlgSet), setName: CustomSubset.Name);

            screen.Show();
            this.ParentForm.Close();
        }
예제 #2
0
        private void ViewSelectedButton_Click(object sender, EventArgs e)
        {
            var nameMap = XmlSubsetFile.GetNameMap(Set);

            try
            {
                SubsetTools.ValidateAlgListInput(RangeBox.Text, nameMap, Info.GetNumPositionsInSet(Set), CustomSubsetFile.GetSubsets(Set));
                var screen = new SetInfoScreen(Set, RangeBox.Text, nameMap, CustomSubsetFile.GetSubsets(Set));
                screen.Text = RangeBox.Text;
                screen.Show();
            }
            catch (ArgumentException ex)
            {
                MessageBox.Show(ex.Message, "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }