Exemple #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();
                }
            }
        }
        private void editEnumIconButton_Click(object sender, EventArgs e)
        {
            var @enum = SelectedItem;

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

            using var eef = new EnumEditorForm(@enum);

            eef.ShowDialog();
        }
        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();
            }
        }