コード例 #1
0
        private void B_EditPatternFlag_Click(object sender, EventArgs e)
        {
            var patterns = new[] { SAV.Main.FlagMyDesign };

            using var editor = new PatternEditor(patterns);
            if (editor.ShowDialog() == DialogResult.OK)
            {
                SAV.Main.FlagMyDesign = patterns[0];
            }
        }
コード例 #2
0
        private void B_EditPatterns_Click(object sender, EventArgs e)
        {
            var patterns = SAV.Main.GetDesigns();

            using var editor = new PatternEditor(patterns);
            if (editor.ShowDialog() == DialogResult.OK)
            {
                SAV.Main.SetDesigns(patterns);
            }
        }