コード例 #1
0
        private void editEnumToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var @enum = projectView.SelectedEnum;

            if (@enum != null)
            {
                using (var eef = new EnumEditorForm(@enum))
                {
                    eef.ShowDialog();
                }
            }
        }
コード例 #2
0
        private void editEnumIconButton_Click(object sender, EventArgs e)
        {
            var @enum = SelectedItem;

            if (@enum == null)
            {
                return;
            }

            using var eef = new EnumEditorForm(@enum);

            eef.ShowDialog();
        }
コード例 #3
0
        private void addEnumIconButton_Click(object sender, EventArgs e)
        {
            var @enum = new EnumDescription
            {
                Name = "Enum"
            };

            using var eef = new EnumEditorForm(@enum);

            if (eef.ShowDialog() == DialogResult.OK)
            {
                project.AddEnum(@enum);

                ShowFilteredEnums();
            }
        }