Exemplo n.º 1
0
        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            if (NameTextBox.Text.Trim() == string.Empty)
            {
                return;
            }

            if (NameTextBox.DataContext == null)
            {
                _cc.AddOperationGroup(NameTextBox.Text.Trim());
            }

            _cc.SaveOperationGroups();

            NameTextBox.DataContext = null;
            NameTextBox.Text        = string.Empty;

            HideEditGrid();
        }