コード例 #1
0
        private void AddEnum(object sender)
        {
            TextBox tb      = sender as TextBox;
            string  content = tb.Text;

            if (!content.Equals("") && !content.Equals(default_enum_string))
            {
                GlobalEnums.GetIntance().AddEnum(content);
                UpdateLayout();
            }
            tb.Text = default_enum_string;
        }
コード例 #2
0
 private void MenuEnums_Click(object sender, RoutedEventArgs e)
 {
     (new EnumsView(GlobalEnums.GetIntance())).Show();
 }