Ejemplo n.º 1
0
        private void EditBook_OnClick(object sender, RoutedEventArgs e)
        {
            var button   = (Button)sender;
            var bookFile = button.Tag.ToString();

            IsEnabled = false;
            var editBook = new EditBook(bookFile)
            {
                Owner = this,
            };

            editBook.Closed += delegate { IsEnabled = true; };
            editBook.Show();
        }
Ejemplo n.º 2
0
        private void TextBox_OnLoaded(object sender, RoutedEventArgs e)
        {
            var textBox = (TextBox)sender;

            try
            {
                var whisperer = EditBook.GetWhispererForColumn(textBox.Name);
                whisperer.TextBox = textBox;
            }
            catch (RowNotInTableException exception)
            {
                DebugConsole.WriteLine("FilterWindow: Not possible to load Whisperer for " + textBox.Name + ": " + exception);
            }
        }