コード例 #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
ファイル: MainScreen.cs プロジェクト: fletcher-berry/Cubing
        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);
            }
        }