private void UpdateButton_Click(object sender, RoutedEventArgs e) { bufferData.EditMode = BufferData.EditModes.Update; try { EditWindowHandler.OpenWindow(); } catch (DatabaseActionException ex) { MessageBox.Show(ex.Message); } SelectTable(bufferData.CurrentTableName); }
private void AddButton_Click(object sender, RoutedEventArgs e) { bufferData.EditMode = BufferData.EditModes.Insert; EditWindowHandler.OpenWindow(); SelectTable(bufferData.CurrentTableName); }