Ejemplo n.º 1
0
        private void BtnAddRow_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new Controls.PromptDialog()
            {
                Title = "Enter row name"
            };

            if (dialog.ShowDialog() == true)
            {
                if (string.IsNullOrEmpty(dialog.ResponseText))
                {
                    MessageBox.Show("Failed to add empty name", "Failed", MessageBoxButton.OK, MessageBoxImage.Error);
                    return;
                }
                GR.AddRow(dialog.ResponseText[0]);
            }
        }