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; }
private void MenuEnums_Click(object sender, RoutedEventArgs e) { (new EnumsView(GlobalEnums.GetIntance())).Show(); }